ddsol / speedtest.net

node.js SpeedTest.net client module
MIT License
607 stars 126 forks source link

No server found, verify your proxy/network #132

Open bdydrp opened 2 years ago

bdydrp commented 2 years ago

I have had this working in node red for quite some time, and up until recently i kept getting an error: "No server found, verify your proxy/network" image

Nothing has changed at all with my network so wondering what is causing this error?

I have tried setting a specific server ID but no go

philly1993 commented 2 years ago

I am also seeing this as well in 1.6.2. This issue seemed to just appear yesterday for me.

Looks like it relates to https://github.com/ddsol/speedtest.net/blob/90fcc3599316289f6f078ae8241ecc45d9f3a01b/index.js#L649

ryanmccartney commented 1 year ago

Also seeing this issue on 1.6.2.

darvvin commented 1 year ago

I had this running with a script every 30 minutes. The last successful run was Sept 16 at 4:30pm(EST). "No server found, verify your proxy/network" ever since then.

stefanmck commented 1 year ago

Same problem here

bugsounet commented 1 year ago

I think the real question is ... why using v1.6.2 ? because release is v2.2.0 and works fine :)

stefanmck commented 1 year ago

After accepting (see belwo) it works fine again

CLI options Usage: speedtest-net [-h|--help] [--accept-license] [--server-id ] [--source-ip ]

-h, --help: Help --accept-license: Accept the Ookla EULA, TOS and Privacy policy. The terms only need to be accepted once. --accept-gdpr: Accept the Ookla GDPR terms. The terms only need to be accepted once.

philly1993 commented 1 year ago

I tried passing in those accept params in the terminal and it didn’t work for me.

Do you have a code example of the package returning the results?

bdydrp commented 1 year ago

I removed the package from node red, and re-installed. Accepted the T&C and is now working!

VDenisyuk commented 1 year ago

Seems that SpeedTest php endpoints do not return proper XML with config and server list anymore. They return a message, that the request limit has been exceeded from your IP. Therefore, no servers found message appears.

KennethGrainger commented 1 year ago

I've been going around on this problem. Lots of suggestions that almost work. I'm running MagicMirror with Internet-Monitor, which includes speedtest-net.
The speedtest used to work, which I presume was before Speedtest added/changed the license. If you don't accept the license, then it doesn't return a valuable response. I was able to get 2.2.0 kinda working, but I had to change the options in index.js to get it to work. I had to sudo ./bin/index.js. Then the test will run.

If I install the global cli, it will run with --accept-license. But, I can't seem to get it to run with 1.6.2. It's unclear on 1.6.2, where to put the options in so they work. There are some in various places in ./index.js, but nothing I've tried has worked. The workarounds don't really resolve problems when running it as a module.

KennethGrainger commented 1 year ago

After going through manually updating the node_module to 2.2.0, and some other dependencies for lzma and decompress-tarxz, I was able to get this working. It'll probably get stepped on if I update it again. Might have to walk through some of the package-lock.json files if it rolls back the version.

rbonestell commented 1 year ago

@KennethGrainger Can you provide the libraries and versions you changed? Perhaps they can be added as overrides in our projects to get them working again. I've upgraded this dep to v2.2.0 but still get this error when running on a ras pi 4.

adamk commented 11 months ago

sudo speedtest-net --accept-license

Solved it for me

adamk commented 11 months ago

Seems that SpeedTest php endpoints do not return proper XML with config and server list anymore. They return a message, that the request limit has been exceeded from your IP. Therefore, no servers found message appears.

@VDenisyuk Do you know how to fix this?

KennethGrainger commented 11 months ago

@KennethGrainger Can you provide the libraries and versions you changed? Perhaps they can be added as overrides in our projects to get them working again. I've upgraded this dep to v2.2.0 but still get this error when running on a ras pi 4.

Yeah, I went through and tried to go through it all logically, step by step, trying to remove deprecation warnings and module mismatches. The who process is infuriating. I do know that I did manually run speedtest-net with sudo and --accept-license like adamk was mentioning. I have one machine running, and another that is broken. When I made it work the first time, I was just poking around all over the place getting rid of warnings. I'm not really well versed in Node. If the license is accepted, it seems that all following calls work correctly. I can't find any real explanation on what the --accept-license does, or where is stores that information.

philly1993 commented 11 months ago

I think I have a solution - need to grab from my server but will report back with what worked for me. On Sep 24, 2023, at 11:18 AM, Adam Kimbrough @.***> wrote:

Seems that SpeedTest php endpoints do not return proper XML with config and server list anymore. They return a message, that the request limit has been exceeded from your IP. Therefore, no servers found message appears.

Do you know how to fix this?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>