-
Notifications
You must be signed in to change notification settings - Fork 1.1k
NETWORK ERROR #936
Comments
Hi Sheldon, The following log message is reporting the error:
Can you verify the your network's DNS server is correctly configured? You can try running I get the following results, you should see something similar:
|
Hi,
|
It is not normal that the DNS lookup fails most of the time. I would suggest these values:
Meaning: every look-up has a timeout of of 3 seconds, it should look-up 3 times. The results of DNS look-ups must be cached. The cache will contain at most 20 entries. |
Thank you very much, it was the issue that those parameters weren't set correctly. My problems have been solved and this issue is closed. |
Hello Sheldon, Regards, |
When doing a DNS lookup, there used to be a read-timeout of However, by default, this macro is defined as:
Since a recent pull request, 2 new macros were introduced to configure the DNS handling:
both with a default value of 0.5 seconds. That is maybe short, and you might want to give them a value of 2 seconds ( |
Hi,
When I was testing freeRTOS for a small application, I encountered a NETWORK ERROR problem.
Because I am in China, so I am not sure if this issue is caused by the distance between me and amazon server is too far or some thing else. The area of my endpoint address is
us-east-1
. Actually, sometimes this problem does not exist at all, but sometimes the board cannot connect to my endpoint at all. Here is the error logs for running the shadow demo.I (2090) WIFI: SYSTEM_EVENT_STA_CONNECTED
3 861 [IP-task] vDHCPProcess: offer c0a80105ip
I (8920) event: sta ip: 192.168.1.5, mask: 255.255.255.0, gw: 192.168.1.1
I (8920) WIFI: SYSTEM_EVENT_STA_GOT_IP
4 890 [IP-task] vDHCPProcess: offer c0a80105ip
5 891 [iot_thread] [INFO ][DEMO][8910] Successfully initialized the demo. Network type for the demo: 1
6 891 [iot_thread] [INFO ][MQTT][8910] MQTT library successfully initialized.
7 891 [iot_thread] [INFO ][Shadow][8910] Shadow library successfully initialized.
8 891 [iot_thread] [INFO ][DEMO][8910] Shadow Thing Name is esp32 (length 5).
9 1893 [iot_thread] [ERROR][NET][18930] Failed to resolve a1zwfs4sf2i9un-ats.iot.us-east-1.amazonaws.com.
10 1893 [iot_thread] [ERROR][MQTT][18930] Failed to establish new MQTT connection, error NETWORK ERROR.
11 1893 [iot_thread] [ERROR][DEMO][18930] MQTT CONNECT returned error NETWORK ERROR.
12 1893 [iot_thread] [INFO ][Shadow][18930] Shadow library cleanup done.
13 1893 [iot_thread] [INFO ][MQTT][18930] MQTT library cleanup done.
14 1893 [iot_thread] [ERROR][DEMO][18930] Error running demo.
15 1895 [iot_thread] [INFO ][INIT][18950] SDK cleanup done.
Any suggestions?
Regards,
Sheldon
The text was updated successfully, but these errors were encountered: