HTTPS not working in a more complex context #8933
Replies: 3 comments 1 reply
-
Hello, is there no body who can give me a hint, or has an idea?! Can there the an interference with other instances of an HTTPClient for example? I'm sung an HTTPClient and WifiClient in other classes as well. |
Beta Was this translation helpful? Give feedback.
-
You deleted the template and aren't providing an MCVE so it's not possible to help you much. My best guess is you are out of memory. HTTPS needs one 17KB and one 7KB contiguous chunk of RAM or it cannot work. You might be able to move the |
Beta Was this translation helpful? Give feedback.
-
I have a very similar problem. Example code ist working, but in a larger project it fails. Most read answer is heap or OOM. The problem occurs with sender.GET(). If you request only a few bytes, get() returns 200 and snippet works. Also downloads in chunks are working. But if you request a larger file get() returns not connected regardless of setInsecure and/or setBufferSizes or MMU settings. So snippet from Kasperdelasopa always ends with httpCode -1 or -5
icon file c.ico with 1150b successful transfered in chunks of 128. all other failed in same loop. free heap 27392 does not fit ~28k (magic BearSSL limes). Maybe PR #9005 (readStringUntil) points in a new direction to solve this problem. |
Beta Was this translation helpful? Give feedback.
-
Hello,
i want to use the following code in a standalone test environment:
The code works fine as standalone.
When i want of use the same code in my project, i always receive the httpCode = -1
I have no idea what can cause this in my case.
As i cant provide the entire project (over 20.000 lines of code), i need your ideas, what could cause my code not to connect to the https-site.
Please provide me with some ideas! I'm running out of them :-(
Beta Was this translation helpful? Give feedback.
All reactions