-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ESP8266HTTPClient https Transfer-Encoding: chunked fails #4768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could be OOM since you're trying to use both SSL variants in one sketch. You're using BearSSL for the connectivity check, but you're using axTLS for the httpClient object. Pass in a uint8_t20] array (i.e. |
Thanks for your quick answer. No, that didn't do the trick, still the same (partly) response. The strange thing is, it is not the read from the server, it is the write of the output to the stream. I tried to drill it down and ended (unsuccessfully) in Print.h and Print.cpp. Here the functions Any ideas? By the way, did you see the mail I sent you May 27th, subject: Extension to ESP8266HTTPClient? I have made a certificate store HTPP client :) |
@Jeroen88 thanks for the note. Your email ended up in Yahoo's spam folder and I'd never have seen it! Why don't you send in a PR for that change? I know there was talk about redoing the HTTPClient interface to take a As for this specific problem, is there a publicly accessible URL to throw into it and see? The simple example code works, last time I tried it, for both axTLS and BearSSL. I haven't looked into the actual client code, but it may actually be very memory intensive if it's using a Stream and have trouble with any sort of SSL. |
My update and your reaction crossed...! I should use a PR, still did not take the time to better understand git. Yes I have a publicly available URL that I rather not publish here. I e-mail it to you right now. |
The problem has nothing to do with ESP8266HTTPClient or chunking. It is an ordinary running out of memory. |
Basic Infos
Platform
Settings in IDE
Problem Description
When trying to GET a https page using ESP8266HTTPClient with a chunked response, HTTPClient::writeToStreamDataBlock return 0 at int bytesWrite = stream->write(buff, bytesRead); However, the bytes ARE written to the stream. If I create a work around by adding bytesWrite = bytesRead; directly after the stream->write, the complete file is retreived from the server.
MCVE Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: