Hi,
I’ve developed a Phoenix application that functions as a REST to SOAP converter. Instead of using a SOAP client package, I’ve implemented it using pure HTTP.
The application receives a JSON message from the client approximately every two seconds, converts it to XML, and forwards it to a SOAP server (SAP).
I’m utilizing Req, which in turn utilizes Finch and Mint.
After successfully sending several hundred messages, I encounter the following errors:
%Finch.Error{reason: :read_only}
03:43:47.343 [error] #PID<0.3996.0> running ErpInterfaceWeb.Endpoint (connection #PID<0.3995.0>, stream id 1) terminated
Restarting my app, which is hosted on Fly.io, resolves the issue.
I’m unsure if there’s a problem with my application, if the external server is blocking me, or if there’s an issue with Finch.
I’ve researched the “read_only” error but haven’t found any useful information. I’m uncertain whether this signifies a problem within my app or with the external server.
I’m considering replacing Req with Tesla, hoping it might resolve the issue.
Any insights would be greatly appreciated.
Regards,
Hector Sansores