Skip to content
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

Out of buffer error while using Advanced OTA example in esp-idf (IDFGH-7610) #9164

Closed
MaazSk opened this issue Jun 15, 2022 · 5 comments
Closed
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@MaazSk
Copy link

MaazSk commented Jun 15, 2022

Environment

  • Development Kit: [ESP32-DevKit]

  • Kit version (for WroverKit/PicoKit/DevKitC): [v1]

  • Module or chip used: [ESP32-WROOM-32|]

  • IDF version (run git describe --tags to find it): v5.0-dev-939-g952b4d848f

  • Compiler version : xtensa-esp32-elf-gcc (crosstool-NG esp-2021r1) 8.4.0

  • Operating System: [Linux]

  • Using an IDE?: [VS Code]

  • Power Supply: [USB]

Problem Description

I am trying to use the advanced ota example provided by esp-idf but I am getting the following error

E (9663) HTTP_CLIENT: Out of buffer
E (9663) esp_https_ota: Failed to open HTTP connection: ESP_FAIL
E (9663) esp_https_ota: Failed to establish HTTP connection
E (9673) advanced_https_ota_example: ESP HTTPS OTA Begin failed

How can I change the buffer size or any help how to resolve it can be of better help

Thank you!

@espressif-bot espressif-bot added the Status: Opened Issue is new label Jun 15, 2022
@github-actions github-actions bot changed the title Out of buffer error while using Advanced OTA example in esp-idf Out of buffer error while using Advanced OTA example in esp-idf (IDFGH-7610) Jun 15, 2022
@mahavirj
Copy link
Member

Please try setting larger value for buffer_size_tx from HTTP client configuration

int buffer_size_tx; /*!< HTTP transmit buffer size */

@MaazSk
Copy link
Author

MaazSk commented Jun 15, 2022

Larger means what should it be its ideal value as my .bin file would be approximately 1.2MB in size and earlier these code used to work.

Also when I tried to set it 10240 I got the following error.

E (26957) esp_https_ota: Client error (400)
E (26967) esp_https_ota: Failed to establish HTTP connection
E (26977) advanced_https_ota_example: ESP HTTPS OTA Begin failed

The .bin file is been hosted on google drive.

@shubhamkulkarni97
Copy link
Contributor

Hi @MaazSk,

  • You should not use the sharing link for downloading the firmware. You can use this tool to generate the download link: https://sites.google.com/site/gdocs2direct/
  • Please check if you can download the file on your host machine using curl. This will help to check any issues with the setup.

@MaazSk
Copy link
Author

MaazSk commented Jun 15, 2022

Hi @shubhamkulkarni97,
Thank you for the reply. I know that I need to create a downloadable link and I have created the same and I am able to directly download the file using the url without any issue.

@MaazSk
Copy link
Author

MaazSk commented Jun 16, 2022

The issue is been resolved the problem was when I created the link the access given was restricted and not to everyone which should I have been to everyone after changing this setting it is working fine,

Thank you for the help

@MaazSk MaazSk closed this as completed Jun 16, 2022
@espressif-bot espressif-bot added Resolution: Done Issue is done internally Status: Done Issue is done internally and removed Status: Opened Issue is new labels Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

4 participants