REASON: send request failed #501
Replies: 3 comments 8 replies
-
It is because the internet connection problem. No matter what the functions you use but device can't access to the internet. Please try to reset router or change to other networks that have internet access. |
Beta Was this translation helpful? Give feedback.
-
Please avoid using all async functions. The async function is not design for general use to send the data to Firebase as the response is ignored and the next data sending will be processed immediately. Async function is for sending fast but don't care the result. Because we don't care the async response, it may fail at some point where server rejected the connection due to server policy or time out, and you need to close the session by calling This is not possible to know when we need to close the session, it might be every 100 async requests or less as it also depends on the size of payload to send. Then you should avoid using all async functions, if you want reliable operation. |
Beta Was this translation helpful? Give feedback.
-
You can't use too many FirebaseData load; // <---- ok
FirebaseData switch3; // <---- ok
FirebaseData switch2; // <---- may ok but not recommended
FirebaseData switch1; // <---- not recommended This is not library restriction, but your device memory is not enough for multiple SSL clients that opened the connection at the same time. Your device may be reset due to wdt. You should use 2 If you want to use many This is because SSL client in Where Pico has available free memory approx. 120k and uses the SSL engine (BearSSL) as in ESP8266 that required only 10k for each SSL client's TCP session. |
Beta Was this translation helpful? Give feedback.
-
Hi, when i set bool Data This message out (REASON: send request failed)
note : i am using streamCallback for same path .
Beta Was this translation helpful? Give feedback.
All reactions