-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Downloading a file from URL to a file (LittleFS) returns a HTTPC_ERROR_READ_TIMEOUT error #8408
Comments
It seems to be an issue with your webserver. http.begin(client, URL);
+ http.setUserAgent("curl/7.74.0");
httpCode = http.GET(); Now you have my IP addresses in your logs. Good work :) However, |
...issue already fixed in master after this PR? actual git repo is in the ~/.platformio/packages/framework-arduinoespressif8266@src-*, you could check whether that commit is there |
I'm not sure what you mean by host mode, can you explain please?
I added this line as you advised and switch back to Core 3.0.2:
but no success, here is the debug log:
Also, you can see in the debug log in my initial message that a default user-agent was present. |
Thanks @mcspr ! Looks like it's exactly my problem, I'll test it ASAP. |
OK #8384 fixed the issue, thanks for your help. |
@BrokeStudio
Host mode / emulation on host is the ability to compile and run some sketch on a computer.
|
Basic Infos
Platform
-DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_PORT=Serial
build flags)Settings in IDE
Problem Description
Trying to download a file from a URL directly to a file stream returns an "error(-11): read Timeout" (HTTPC_ERROR_READ_TIMEOUT).
It works fine if doing
http.writeToStream(&Serial);
instead ofhttp.writeToStream(&f);
.It works fine using core v2.7.4 (
platform = espressif8266@2.6.3
in platformio.ini)I got the same error using:
platform = espressif8266@3.0.0
in platformio.ini)platform = espressif8266@2.6.3
in platformio.ini)platform = espressif8266@3.2.0
in platformio.ini).Seems to be working with 3.0.1-dev, using this config in platformio.ini:
MCVE Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: