speedtest-cli icon indicating copy to clipboard operation
speedtest-cli copied to clipboard

fix 403 err

Open SokDobry1 opened this issue 2 years ago • 14 comments

Fixing a link that was causing a 403 error

SokDobry1 avatar Oct 08 '22 14:10 SokDobry1

Thank you for the fix - LGTM!

caboteria avatar Oct 09 '22 21:10 caboteria

Why isn't this accepted yet?

mmaridev avatar Oct 13 '22 18:10 mmaridev

Works for me, thanks!

curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/ef508f75e6a474968095913901fe119967b386e9/speedtest.py | python3 -

image

maciej-kaznowski avatar Oct 14 '22 21:10 maciej-kaznowski

Thanks, with your script I don't have the 403 error anymore! Unfortunately I have another error :(

image

image

EVOTk avatar Oct 16 '22 20:10 EVOTk

urls in get_servers like www.speedtest.net/speedtest-servers-static.php or www.speedtest.net/speedtest-servers.php

now returns 429 Error - Too Many Requests

this prevents cli to retrieve servers lists and breaks the tests

afl-iris avatar Oct 17 '22 08:10 afl-iris

urls in get_servers like www.speedtest.net/speedtest-servers-static.php or www.speedtest.net/speedtest-servers.php

now returns 429 Error - Too Many Requests

this prevents cli to retrieve servers lists and breaks the tests

I doubt the usual link fix is ​​the cause. Perhaps a bug in the site or code. I'll see what I can fix later.

SokDobry1 avatar Oct 17 '22 10:10 SokDobry1

Using the flag --secure seems to work for me.

Loukious avatar Oct 17 '22 22:10 Loukious

It doesn't change anything for me :( image

EVOTk avatar Oct 18 '22 05:10 EVOTk

It doesn't change anything for me :( image

Can you try my pull request? I doubt it will be different but worth a try. curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/b5df4bf507929d6014d4e7b13876c69fab9caf36/speedtest.py | python3 Edit: also are you sure you're using the modified version? Seems to me your using the master branch.

Loukious avatar Oct 18 '22 06:10 Loukious

Thanks for your help @Loukious , yes I do use the modified version. But it doesn't work.

I am on openmediavault ( up to date ), I also use piHole but there are no blocked requests, and if I disable it it doesn't change anything.

image

I'm obviously not the only one with this concern: https://lafibre.info/tester-son-debit/speedtest-cli-error-unable-to-connect-to-servers-to-test-latency/

EVOTk avatar Oct 18 '22 06:10 EVOTk

Hello all, I confirm an error : Unable to connect to servers to test latency.

Do you have solution ?

Best Regards

Anthony

ANTHONY-HESNAUX avatar Oct 27 '22 12:10 ANTHONY-HESNAUX

urls in get_servers like www.speedtest.net/speedtest-servers-static.php or www.speedtest.net/speedtest-servers.php

now returns 429 Error - Too Many Requests

this prevents cli to retrieve servers lists and breaks the tests

Same problem here... :-(

sgallou avatar Nov 26 '22 13:11 sgallou

can confirm that this pull request solves issue for me

before Retrieving speedtest.net configuration... Cannot retrieve speedtest configuration ERROR: HTTP Error 403: Forbidden

after this pull request

Retrieving speedtest.net configuration... Testing from Telia Lietuva (xx.xx.xx.xx)... Retrieving speedtest.net server list... Selecting best server based on ping...

Aivaras-s avatar Oct 08 '23 19:10 Aivaras-s

i prefer #800 for the --insecure flag

milahu avatar Nov 26 '23 13:11 milahu