The error message "Connection reset by peer" usually indicates that something outside of your Mx app is resetting the connection. Most of the time when I ran into this was because the request took to long to process.
If other requests to that location work I would look into the size and duration of the request with image. A couple of possibilities I can think of are,:
- transmitting the message takes to long and the socket closes.
- evaluation of the image after receiving takes to long and the server no longer wants to wait
- the message is to large and the receiving server rejects the message
I would start be checking how bug your image is, and logging the request that is going out to confirm the request is not unreasonably large and correctly formatted.
Additionally I would recommend to check the logs on the receiving server, that should usually have more detailed information.
Hi, it’s an old thread I know but could you solve the issue ? I have a very similar problem.
Small payloads work, larger one fail. Thank you :)
I found the error, in my case it was a java TLS 1.3 issue. Solution is explained here: https://github.com/structurizr/java/issues/119