Closed VallariTrivedi closed 5 years ago
@zhangyanjiao please help
@VallariTrivedi Can you share snippet of how you are sending http post req at regular intervals?
It seems likely that you are invoking esp_http_client_init()
API multiple times without calling esp_http_client_cleanup()
API at the end of each iteration of request, which is resulting in "Allocation failed" error.
@VallariTrivedi Could you help share if any updates for this issue? Thanks.
@jitin17 I added esp_http_client_cleanup() to the calling API. This solves "Allocation Failed" error.
@VallariTrivedi Could you help share if any updates for this issue? Thanks.
I no longer get "Allocation Failed" error. Thankyou for your support.
----------------------------- Delete below -----------------------------
If your issue is a general question, starts similar to "How do I..", or is related to 3rd party development kits/libs, please discuss this on our community forum at esp32.com instead.
INSTRUCTIONS
Before submitting a new issue, please follow the checklist and try to find the answer.
If the issue cannot be solved after the steps before, please follow these instructions so we can get the needed information to help you in a quick and effective fashion.
----------------------------- Delete above -----------------------------
Environment
git rev-parse --short HEAD
to get the commit id.): //bd6ea4393c7d2f059fc4decc70f1ec3eb3597268Problem Description
Hi, I have developed an application to post http req at regular intervals to a remote server. This application uses esp_http_client.c library. After few iterations of http post req, I see "Allocation Failed" Error and http req fails.
Expected Behavior
http req should post successfully in all iterations
Actual Behavior
http post req fails due to allocation failed err from http_client
Steps to repropduce
// It helps if you attach a picture of your setup/wiring here.
Code to reproduce this issue
// If your code is longer than 30 lines, GIST is preferred.
Debug Logs
Other items if possible
build
folder (note this may contain all the code details and symbols of your project.)