bitfocus / companion-module-generic-http

Generic HTTP module
MIT License
9 stars 19 forks source link

XML POST requests not working on 3.0.0 and above #47

Open FroddeB opened 11 months ago

FroddeB commented 11 months ago

I've tried to isolate the problem as much as possible.

Something is stopping me from using POST requests using XML on 3.0.0 and above, I'm not sure why.

image

Julusian commented 11 months ago

Interestingly, I am able to make requests with xml just fine.

That error code is defined as:

ECONNRESET (Connection reset by peer): A connection was forcibly closed by a peer. This normally results from a loss of the connection on the remote socket due to a timeout or reboot. Commonly encountered via the http and net modules.

So it sounds like some network/server issue. Between 2.4.2 and 3.0 the http library being used has changed, and there have been other changes. Could you double check that both the action and the connection config are setup correctly? Does your network require the use of a proxy or something special?

FroddeB commented 11 months ago

Sorry for the long wait for the reply, the connection config is exactly the same just checked again now running 3.1.1 and issue still persists however with the correct error log "HTTP POST Request failed" instead of "HTTP GET Request failed".

My network has no restrictions or proxies running. Again still works fine with 2.4.2 below and POST request with Content Type set to application/xml is the only affected.

Julusian commented 10 months ago

I'm not able to reproduce this with a simple express server