Fix 429 errors
This PR uses the one from @marksmayo
Just tried it and works fine for me. My HomeAssistant integration hasn't been working for quite a few months now because of this issue.
It would be really nice if this could be merged and released
Hello,
Same 429 cli, http and curl
→ speedtest --list
Retrieving speedtest.net configuration...
→ speedtest
Retrieving speedtest.net configuration...
Testing from Orange (XXXXXXXXXXX)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
ERROR: Unable to connect to servers to test latency.
~ → curl -iL https://www.speedtest.net/speedtest-servers.php
HTTP/2 429
date: Thu, 02 Mar 2023 18:57:11 GMT
content-type: text/html
content-length: 591
retry-after: 0
accept-ranges: bytes
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=lsVV04VP4EnXe_XACbglTNypxfwSwVdCSBZCsKmb5_A-1677783431-0-AfzPaNeYOsnL5DGl66fR1OEsrx7cZqQIPsosKJdrzyfOmli02FaYmmpSXco13lETXCmgU0VgfrY5Mk2mj/t5r+U=; path=/; expires=Thu, 02-Mar-23 19:27:11 GMT; domain=.www.speedtest.net; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 7a1bdd2f09e40d73-MRS
<html><head><title>Too Many Requests</title></head><body><h1>429 Error - Too Many Requests</h1><p>Your IP address is making too many requests. We ask that you limit requests to no more than 1 per second.</p><p>We make an attempt to be flexible, allowing small bursts in traffic. You have exceeded this threshold however and have been blocked.</p><p>Please reduce the speed at which your requests are made and try again after a while. If you feel you have reached this message in error, please contact us at noc @ speedtest.net and reference this error code.</p><p>Thank you</p></body></html>

Can you merge ?
Ok, I apologize, I was not aware I am very new at Github and also CLI stuff, so could I just use the CLI command networkquality instead?
Brian Lauterbach - Sent using Spark Mail from Apple© MacBook Air M2 Sent with Spark On Mar 2, 2023 at 12:58 PM -0600, Mathieu BEDOS @.***>, wrote:
Same 429 cli and http .. ~ → curl -iL https://www.speedtest.net/speedtest-servers.php
HTTP/2 429
date: Thu, 02 Mar 2023 18:57:11 GMT
content-type: text/html
content-length: 591
retry-after: 0
accept-ranges: bytes
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=lsVV04VP4EnXe_XACbglTNypxfwSwVdCSBZCsKmb5_A-1677783431-0-AfzPaNeYOsnL5DGl66fR1OEsrx7cZqQIPsosKJdrzyfOmli02FaYmmpSXco13lETXCmgU0VgfrY5Mk2mj/t5r+U=; path=/; expires=Thu, 02-Mar-23 19:27:11 GMT; domain=.www.speedtest.net; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 7a1bdd2f09e40d73-MRS
Too Many Requests 429 Error - Too Many Requests
Your IP address is making too many requests. We ask that you limit requests to no more than 1 per second.
We make an attempt to be flexible, allowing small bursts in traffic. You have exceeded this threshold however and have been blocked.
Please reduce the speed at which your requests are made and try again after a while. If you feel you have reached this message in error, please contact us at noc @ speedtest.net and reference this error code.
Thank you
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Ok, I apologize, I was not aware I am very new at Github and also CLI stuff, so could I just use the CLI command networkquality instead? Brian Lauterbach - Sent using Spark Mail from Apple© MacBook Air M2 Sent with Spark … On Mar 2, 2023 at 12:58 PM -0600, Mathieu BEDOS @.>, wrote: Same 429 cli and http .. ~ → curl -iL https://www.speedtest.net/speedtest-servers.php HTTP/2 429 date: Thu, 02 Mar 2023 18:57:11 GMT content-type: text/html content-length: 591 retry-after: 0 accept-ranges: bytes cf-cache-status: DYNAMIC set-cookie: __cf_bm=lsVV04VP4EnXe_XACbglTNypxfwSwVdCSBZCsKmb5_A-1677783431-0-AfzPaNeYOsnL5DGl66fR1OEsrx7cZqQIPsosKJdrzyfOmli02FaYmmpSXco13lETXCmgU0VgfrY5Mk2mj/t5r+U=; path=/; expires=Thu, 02-Mar-23 19:27:11 GMT; domain=.www.speedtest.net; HttpOnly; Secure; SameSite=None server: cloudflare cf-ray: 7a1bdd2f09e40d73-MRS
Too Many Requests 429 Error - Too Many Requests
Your IP address is making too many requests. We ask that you limit requests to no more than 1 per second.
We make an attempt to be flexible, allowing small bursts in traffic. You have exceeded this threshold however and have been blocked.
Please reduce the speed at which your requests are made and try again after a while. If you feel you have reached this message in error, please contact us at noc @ speedtest.net and reference this error code.
Thank you
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>
Good morning,
That's not the topic but yes
Can it be updated ? Freebsd package is failing to retrive server list
I tested your script by using curl -s https://raw.githubusercontent.com/Notmarrco/speedtest-cli/master/speedtest.py | python3 -: it works like a charm, thanks.
Hope this PR will be merged soon.
Seems like this problem happen often in France
I tested your script by using
curl -s https://raw.githubusercontent.com/Notmarrco/speedtest-cli/master/speedtest.py | python3 -: it works like a charm, thanks. Hope this PR will be merged soon.
Testing this I get
Retrieving speedtest.net configuration...
Cannot retrieve speedtest configuration
ERROR: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>