Tag Archives: Daily knowledge sharing

[Solved] “error_code“:500,“message“:“IO Error trying to forward REST request: java.net.ConnectException: Connection Refused

“error_code”:500,“message”:“IO Error trying to forward REST request: java.net.ConnectException: Connection refused”
An error is reported by executing the following command.
curl -u debezium:4a3s4d02234 http://debezium-001.optics.net:8083/connectors/mysql-optics-prod/restart -X POST
The error message is shown below.
{“error_code”:500, “message”: “IO Error trying to forward REST request: java. ConnectException: Connection refused”}
Solution: make sure the following parameters are set correctly.
rest.host.name=debezium-001.optics.netrest.port=8083