The error message is “Failed to send HTTP POST request to … :Error=HTTPInsufficientMemory”. That means you are running out of memory and the buffer is not large enough. Please try increasing the size of request and response buffer -
It seems that I’ve identified where the issue is, in the logs. I always use LogInfo because LogDebug doesn’t print correctly for me. If I use this combination, the program doesn’t fail, although I can’t see headers, status code, or body on the screen.
However, if I use LogInfo for all of them, sometimes it works, and other times it triggers a hard fault.
notes: breakpoint in Status Code.
How can i fix?
thk
Everything points to the fact that the request, which is a JSON, doesn’t appear complete. This leads me to think that these variables need to be defined:
I do not think there should be any difference in LogInfo and LogDebug - the problem must be elsewhere.
We need to figure out the cause of the hard fault.
Are you receiving the complete buffer and it is getting truncated while printing OR are you not getting the complete buffer? Can you examine these values in debugger?