I'm having an issue in which my device will occasionally fail to make network requests for a period of time, then reconnect to the network and begin working again.
This is running the http_request example code.
Code: Select all
I (2429314) example: Starting again!
I (2429314) example: DNS lookup succeeded. IP=3.66.72.53
I (2429314) example: ... allocated socket
I (2429464) example: ... connected
I (2429464) example: ... socket send success
I (2429464) example: ... set socket receiving timeout success
HTTP/1.1 301 Moved Permanently
content-length: 0
location: https://dragons.icu:80/
connection: close
I (2429784) example: ... done reading from socket. Last read return=0 errno=128.
I (2429784) example: 10...
I (2430784) example: 9...
I (2431784) example: 8...
I (2432784) example: 7...
I (2433784) example: 6...
I (2434784) example: 5...
I (2435784) example: 4...
I (2436784) example: 3...
I (2437784) example: 2...
I (2438784) example: 1...
I (2439784) example: 0...
I (2440784) example: Starting again!
I (2440784) example: DNS lookup succeeded. IP=3.66.72.53
I (2440784) example: ... allocated socket
E (2459284) example: ... socket connect failed errno=113
I (2463284) example: DNS lookup succeeded. IP=3.66.72.53
I (2463284) example: ... allocated socket
I (2463464) example: ... connected
I (2463464) example: ... socket send success
I (2463464) example: ... set socket receiving timeout success
HTTP/1.1 301 Moved Permanently
content-length: 0
location: https://dragons.icu:80/
connection: close
I (2463784) example: ... done reading from socket. Last read return=0 errno=128.
I (2463794) example: 10...
I (2464794) example: 9...
I (2465794) example: 8...
I (2466794) example: 7...
I (2467794) example: 6...
I (2468794) example: 5...
I (2469794) example: 4...
I (2470794) example: 3...
I (2471794) example: 2...
I (2472794) example: 1...
I (2473794) example: 0...
I (2474794) example: Starting again!
I (2474794) example: DNS lookup succeeded. IP=3.66.72.53
I (2474794) example: ... allocated socket
I (2474934) example: ... connected
I (2474934) example: ... socket send success
I (2474934) example: ... set socket receiving timeout success
HTTP/1.1 301 Moved Permanently
content-length: 0
location: https://dragons.icu:80/
connection: close
I (2475254) example: ... done reading from socket. Last read return=0 errno=128.
I (2475264) example: 10...
I (2476264) example: 9...
I (2477264) example: 8...
I (2478264) example: 7...
I (2479264) example: 6...
I (2480264) example: 5...
I (2481264) example: 4...
I (2482264) example: 3...
I (2483264) example: 2...
I (2484264) example: 1...
I (2485264) example: 0...
I (2486264) example: Starting again!
I (2486264) example: DNS lookup succeeded. IP=3.66.72.53
I (2486264) example: ... allocated socket
E (2504764) example: ... socket connect failed errno=113
I (2508764) example: DNS lookup succeeded. IP=3.66.72.53
I (2508764) example: ... allocated socket
I (2508924) example: ... connected
I (2508934) example: ... socket send success
I (2508934) example: ... set socket receiving timeout success
HTTP/1.1 301 Moved Permanently
content-length: 0
location: https://dragons.icu:80/
connection: close
I (2509264) example: ... done reading from socket. Last read return=0 errno=128.
I (2509264) example: 10...
I (2510264) example: 9...
I (2511264) example: 8...
I (2512264) example: 7...
I (2513264) example: 6...
I (2514264) example: 5...
I (2515264) example: 4...
I (2516264) example: 3...
I (2517264) example: 2...
I (2518264) example: 1...
I (2519264) example: 0...
I (2520264) example: Starting again!
I (2520264) example: DNS lookup succeeded. IP=3.66.72.53
I (2520264) example: ... allocated socket
E (2538514) example: ... socket connect failed errno=113
I (2542514) example: DNS lookup succeeded. IP=3.66.72.53
I (2542514) example: ... allocated socket
E (2561014) example: ... socket connect failed errno=113
E (2579014) example: DNS lookup failed err=202 res=0x0
E (2594014) example: DNS lookup failed err=202 res=0x0
E (2609014) example: DNS lookup failed err=202 res=0x0
E (2624014) example: DNS lookup failed err=202 res=0x0
E (2639014) example: DNS lookup failed err=202 res=0x0
E (2654014) example: DNS lookup failed err=202 res=0x0
E (2669014) example: DNS lookup failed err=202 res=0x0
E (2684014) example: DNS lookup failed err=202 res=0x0
E (2699014) example: DNS lookup failed err=202 res=0x0
E (2714014) example: DNS lookup failed err=202 res=0x0
E (2729014) example: DNS lookup failed err=202 res=0x0
E (2744014) example: DNS lookup failed err=202 res=0x0
E (2759014) example: DNS lookup failed err=202 res=0x0
E (2774014) example: DNS lookup failed err=202 res=0x0
E (2789014) example: DNS lookup failed err=202 res=0x0
E (2804014) example: DNS lookup failed err=202 res=0x0
E (2819014) example: DNS lookup failed err=202 res=0x0
E (2834014) example: DNS lookup failed err=202 res=0x0
E (2849014) example: DNS lookup failed err=202 res=0x0
E (2864014) example: DNS lookup failed err=202 res=0x0
E (2879014) example: DNS lookup failed err=202 res=0x0
E (2894014) example: DNS lookup failed err=202 res=0x0
E (2909014) example: DNS lookup failed err=202 res=0x0
E (2924014) example: DNS lookup failed err=202 res=0x0
E (2939014) example: DNS lookup failed err=202 res=0x0
E (2954014) example: DNS lookup failed err=202 res=0x0
E (2969014) example: DNS lookup failed err=202 res=0x0
E (2984014) example: DNS lookup failed err=202 res=0x0
E (2999014) example: DNS lookup failed err=202 res=0x0
E (3014014) example: DNS lookup failed err=202 res=0x0
E (3029014) example: DNS lookup failed err=202 res=0x0
E (3044014) example: DNS lookup failed err=202 res=0x0
E (3059014) example: DNS lookup failed err=202 res=0x0
E (3074014) example: DNS lookup failed err=202 res=0x0
E (3089014) example: DNS lookup failed err=202 res=0x0
E (3104014) example: DNS lookup failed err=202 res=0x0
E (3119014) example: DNS lookup failed err=202 res=0x0
E (3134014) example: DNS lookup failed err=202 res=0x0
E (3149014) example: DNS lookup failed err=202 res=0x0
E (3164014) example: DNS lookup failed err=202 res=0x0
E (3179014) example: DNS lookup failed err=202 res=0x0
E (3194014) example: DNS lookup failed err=202 res=0x0
E (3209014) example: DNS lookup failed err=202 res=0x0
E (3224014) example: DNS lookup failed err=202 res=0x0
E (3239014) example: DNS lookup failed err=202 res=0x0
E (3254014) example: DNS lookup failed err=202 res=0x0
E (3269014) example: DNS lookup failed err=202 res=0x0
E (3284014) example: DNS lookup failed err=202 res=0x0
E (3299014) example: DNS lookup failed err=202 res=0x0
E (3314014) example: DNS lookup failed err=202 res=0x0
E (3329014) example: DNS lookup failed err=202 res=0x0
E (3344014) example: DNS lookup failed err=202 res=0x0
E (3359014) example: DNS lookup failed err=202 res=0x0
E (3374014) example: DNS lookup failed err=202 res=0x0
E (3389014) example: DNS lookup failed err=202 res=0x0
E (3404014) example: DNS lookup failed err=202 res=0x0
E (3419014) example: DNS lookup failed err=202 res=0x0
E (3434014) example: DNS lookup failed err=202 res=0x0
E (3449014) example: DNS lookup failed err=202 res=0x0
E (3464014) example: DNS lookup failed err=202 res=0x0
E (3479014) example: DNS lookup failed err=202 res=0x0
E (3494014) example: DNS lookup failed err=202 res=0x0
E (3509014) example: DNS lookup failed err=202 res=0x0
E (3524014) example: DNS lookup failed err=202 res=0x0
E (3539014) example: DNS lookup failed err=202 res=0x0
E (3554014) example: DNS lookup failed err=202 res=0x0
E (3569014) example: DNS lookup failed err=202 res=0x0
E (3584014) example: DNS lookup failed err=202 res=0x0
E (3599014) example: DNS lookup failed err=202 res=0x0
E (3614014) example: DNS lookup failed err=202 res=0x0
E (3629014) example: DNS lookup failed err=202 res=0x0
E (3644014) example: DNS lookup failed err=202 res=0x0
I (3657124) wifi:state: run -> init (e00)
I (3657124) wifi:pm stop, total sleep time: 2309942279 us / 3653615333 us
I (3657124) wifi:<ba-del>idx:0, tid:0
I (3657124) wifi:new:<8,0>, old:<8,0>, ap:<255,255>, sta:<8,0>, prof:1
I (3657134) example_connect: Wi-Fi disconnected, trying to reconnect...
E (3659014) example: DNS lookup failed err=202 res=0x0
I (3659544) wifi:new:<8,0>, old:<8,0>, ap:<255,255>, sta:<8,0>, prof:1
I (3659544) wifi:state: init -> auth (b0)
I (3659554) wifi:state: auth -> assoc (0)
I (3659554) wifi:state: assoc -> run (10)
I (3659574) wifi:connected with XXXXXX, aid = 2, channel 8, BW20, bssid = 00:26:5a:cc:71:13
I (3659574) wifi:security: WPA2-PSK, phy: bgn, rssi: -45
I (3659574) wifi:pm start, type: 1
I (3659574) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
I (3659624) wifi:AP's beacon interval = 102400 us, DTIM period = 1
E (3660014) example: DNS lookup failed err=202 res=0x0
I (3661584) esp_netif_handlers: example_netif_sta ip: 192.168.2.65, mask: 255.255.255.0, gw: 192.168.2.1
I (3661584) example_connect: Got IPv4 event: Interface "example_netif_sta" address: 192.168.2.65
I (3662014) example: DNS lookup succeeded. IP=3.66.72.53
I (3662014) example: ... allocated socket
I (3662184) example: ... connected
I (3662184) example: ... socket send success
I (3662194) example: ... set socket receiving timeout success
HTTP/1.1 301 Moved Permanently
content-length: 0
location: https://dragons.icu:80/
connection: close
I (3662614) example: ... done reading from socket. Last read return=0 errno=128.
I (3662624) example: 10...
I (3663624) example: 9...
I (3664624) example: 8...
I (3665624) example: 7...
I (3666624) example: 6...
I (3667624) example: 5...
I (3668624) example: 4...
I (3669624) example: 3...
I (3670624) example: 2...
I (3671624) example: 1...
I (3672624) example: 0...
I (3673624) example: Starting again!
I (3673624) example: DNS lookup succeeded. IP=3.66.72.53
I (3673624) example: ... allocated socket
I (3673864) example: ... connected
I (3673864) example: ... socket send success
I (3673864) example: ... set socket receiving timeout success
HTTP/1.1 301 Moved Permanently
content-length: 0
location: https://dragons.icu:80/
connection: close
I (3675004) example: ... done reading from socket. Last read return=0 errno=128.
I (3675004) example: 10...
I (3676004) example: 9...
I (3677004) example: 8...
I (3678004) example: 7...
I (3679004) example: 6...
I (3680004) example: 5...
I (3681004) example: 4...
I (3682004) example: 3...
I (3683004) example: 2...
I (3684004) example: 1...
I (3685004) example: 0...
I (3686004) example: Starting again!
I (3686004) example: DNS lookup succeeded. IP=3.66.72.53
I (3686004) example: ... allocated socket
I (3686144) example: ... connected
I (3686154) example: ... socket send success
I (3686154) example: ... set socket receiving timeout success
HTTP/1.1 301 Moved Permanently
content-length: 0
location: https://dragons.icu:80/
connection: close
I (3686584) example: ... done reading from socket. Last read return=0 errno=128.
I (3686584) example: 10...
I (3687584) example: 9...
I (3688584) example: 8...
I (3689584) example: 7...
I (3690584) example: 6...
I (3691584) example: 5...
I (3692584) example: 4...
I (3693584) example: 3...
I (3694584) example: 2...
I (3695584) example: 1...
I (3696584) example: 0...
I (3697584) example: Starting again!
I (3697584) example: DNS lookup succeeded. IP=3.66.72.53
I (3697584) example: ... allocated socket
I (3697724) example: ... connected
I (3697724) example: ... socket send success
I (3697724) example: ... set socket receiving timeout success
HTTP/1.1 301 Moved Permanently
content-length: 0
location: https://dragons.icu:80/
connection: close
I (3698144) example: ... done reading from socket. Last read return=0 errno=128.
This only happens when connected to a router acting in bridged mode.
It does not seem to be a router issue as none of my other devices have the same issue.