Handling transport_base: Poll timeout or error

danpf1
Posts: 14
Joined: Mon May 10, 2021 2:59 pm

Handling transport_base: Poll timeout or error

Postby danpf1 » Wed Nov 20, 2024 5:34 pm

Hello,

I am using an esp32s3 and making an HTTP CLIENT call using the streaming method (esp_http_client_init,...open, write, etc...).

Sometimes when I call "esp_http_client_write" I see the error below:
transport_base: Poll timeout or error, errno=Success, fd=54, timeout_ms=25000


Questions:
1. What is the proper way to handle this? Do I call "esp_http_client_write" again? Or is there a way to wait, and poll again?

2. How do I catch this error myself? It shows up on the console, but my code doesn't see it. I get a 0 return code from esp_http_client_write but that isn't enough to know what the error was. (I have registered the HTTP handler and it doesn't go there. Is another handler I can register to see it?)

I believe the error is happening because in some cases the server takes a long time. So, I expect I need to retry or wait.

Thanks for your help,
Dan

Who is online

Users browsing this forum: No registered users and 329 guests