You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.
While leaving the script in a remote machine to run, it returned the below lengthy error message after around 6-7 hours of watching
It said it returned a 400 code (Bad Request)
The remote machine has 500Mbps of bandwidth, not excellent, but due to the nature of ISP/DC network, it's meant to be more reliable than home network. And the ping looked more than fine.
root@instance-prod:~# speedtest-cli
Retrieving speedtest.net configuration...
Testing from Oracle Cloud (xxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Jump Networks Ltd (London) [39.19 km]: 4.22 ms
Testing download speed................................................................................
Download: 494.91 Mbit/s
Testing upload speed......................................................................................................
Upload: 289.71 Mbit/s
root@instance-prod:~# ping twitch.tv
PING twitch.tv (151.101.194.167) 56(84) bytes of data.
64 bytes from 151.101.194.167 (151.101.194.167): icmp_seq=1 ttl=58 time=1.20 ms
64 bytes from 151.101.194.167 (151.101.194.167): icmp_seq=2 ttl=58 time=1.22 ms
64 bytes from 151.101.194.167 (151.101.194.167): icmp_seq=3 ttl=58 time=1.22 ms
64 bytes from 151.101.194.167 (151.101.194.167): icmp_seq=4 ttl=58 time=1.22 ms
64 bytes from 151.101.194.167 (151.101.194.167): icmp_seq=5 ttl=58 time=1.25 ms
^C
--- twitch.tv ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 1.200/1.222/1.247/0.014 ms
Due to the nature of this error is potentially unknown, is it possible to add two features:
Retry the connection if the previous one failed
Restart the script with the same config if it encounters some error
Currently it's impossible to run and forget, as eventually it will run into some issue that needs mannual operations. Thanks.
Will definitely look into that, The bot retries requests up to 4 times but in your case a 400 bad request is not retried, because it would fail anyway after 4 tries. Either an incorrect DNS entries or wrong header or URL. Checked the URL and header in the error, and they seem fine, so it's probably a problem on your end. Sadly, there could be more to that error, so it is quite hard to identify exactly what's the cause. But I can say with certainty that the request should have worked, it has the right URL and right header.
And about restarting, you should use a process manager for that like pm2.
While leaving the script in a remote machine to run, it returned the below lengthy error message after around 6-7 hours of watching
It said it returned a 400 code (Bad Request)
The remote machine has 500Mbps of bandwidth, not excellent, but due to the nature of ISP/DC network, it's meant to be more reliable than home network. And the ping looked more than fine.
Due to the nature of this error is potentially unknown, is it possible to add two features:
Currently it's impossible to run and forget, as eventually it will run into some issue that needs mannual operations. Thanks.
Below are the error messages:
The text was updated successfully, but these errors were encountered: