taganaka / SpeedTest

Yet another unofficial speedtest.net client cli interface
332 stars 83 forks source link

Error: uncaught exception of stof #60

Closed gglluukk closed 7 months ago

gglluukk commented 8 months ago

i've got similar errors using this handy tool at:

gglluukk commented 8 months ago

patch is here: https://github.com/taganaka/SpeedTest/pull/61

tcooper-xx commented 8 months ago

Seems that whatever triggered this situation began to happen 3/20/24 between 11:31 and 11:46 GMT.

napalmz commented 8 months ago

I can confirm #61 fix it! Pushed @gglluukk repo to my docker image and now works again. I hope @taganaka will implement it...

tcooper-xx commented 8 months ago

The cause is this URL now seems to be throwing a 500 error: http://speedtest.ookla.com/api/ipaddress.php. Not exactly sure what it's behavior used to be, but potentially this could be replaced with a call to another API like this: https://ip-api.com/docs/api:json

Looks like it was getting the lat/lon & ISP name from that response.

tb205gti commented 8 months ago

Can confirm it solves the issue. Thanks

gglluukk commented 8 months ago

The cause is this URL now seems to be throwing a 500 error: http://speedtest.ookla.com/api/ipaddress.php. Not exactly sure what it's behavior used to be, but potentially this could be replaced with a call to another API like this: https://ip-api.com/docs/api:json

Looks like it was getting the lat/lon & ISP name from that response.

I did some rewrites to replace http://speedtest.ookla.com/api/ipaddress.php with https://api.ipapi.is/ though I don't code in C++, so now it reports IP: "1.2.3.4" (ISP) with location