I have this piece of working code implemented & running for the past 9 months.
But recently, out of nowhere, the HTTP Request is no longer working.
Code: Select all
Error: 0x80072F78 -
Source: WinHttp.WinHttpRequest
Description: The server returned an invalid or unrecognized response
2) it affects both/all methods (GET, POST...)
3) the machine can effectively request the endpoint: no firewall or other troubles (requests works through python, postman, talend api, etc)
4) Changing the COM object from "WinHttp.WinHttpRequest.5.1" to "Msxml2.XMLHTTP" does fix the issue
5) once a day? once every 18 hours? HTTP request to the endpoint using ComObjCreate("WinHttp.WinHttpRequest.5.1") does work fine, only the subsequent calls fail (added this info on the OP)
Question is: why? Is there any way shape or form to proper debug the issue? I can/will do the change mentioned in item (4) but I would rather not, since it is basically creating a new branch of code that will be different than other scripts we have so far
Any help is most welcome.