Skip to content
This repository has been archived by the owner on Jul 28, 2019. It is now read-only.

I get 'Cannot find a test server' #15

Closed
omriravid opened this issue May 11, 2018 · 10 comments
Closed

I get 'Cannot find a test server' #15

omriravid opened this issue May 11, 2018 · 10 comments

Comments

@omriravid
Copy link

Hi,

My code is:
st = pyspeedtest.SpeedTest() try: ping = st.ping() download = st.download() upload = st.upload() except Exception as e: logger.warning(f'speed test failure. {e}')
I get 'Cannot find a test server'
Sometimes it works, sometimes it doesn't. Lately it just doesn't..

Any idea why?
Thanks!

@jmfer1
Copy link

jmfer1 commented May 11, 2018

I have the same problem, can you please advise?

@nullberg
Copy link

I have the same problem as well: 'Cannot find a test server'

@1010Manoj
Copy link

my guess is: This project probably violates SpeedTest.net's terms of service, so they blocked it. The author tried to get around the block, they blocked it again, and the author gave up. In the intervening two years, any other servers it used as backups either blocked it, or shut down (e.g., speedtest.serv.pt, mentioned in the docs, no longer exists).

@fopina
Copy link
Owner

fopina commented Aug 20, 2018 via email

@bera5186
Copy link

@nullberg refer to this https://stackoverflow.com/questions/50999879/pyspeedtest-cannot-find-test-server

@1010Manoj
Copy link

1010Manoj commented Aug 23, 2018 via email

@bera5186
Copy link

@1010Manoj yep its working !!!

@PeterSR
Copy link

PeterSR commented Oct 19, 2018

Had the same issue and changing

186:        connection = self.connect('www.speedtest.net')

to

186:        connection = self.connect('c.speedtest.net')

also solved it for me.

One way to future-proof this would be allow the class to take an optional argument with the url to the server.

@GrexAut
Copy link

GrexAut commented Nov 6, 2018

pyspeedtest -s c.speedtest.net
is also working.

Thanks!

@fopina
Copy link
Owner

fopina commented Jul 28, 2019

@fopina fopina closed this as completed Jul 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants