error running speed-test: "Cannot read property 'settings' of null"
See original GitHub issueI get the following when I run speed-test. It appears to be a problem with speedtest-net, no?
$ speed-test
events.js:141
throw er; // Unhandled 'error' event
^
TypeError: Cannot read property 'settings' of null
at gotServers (~/.nvm/versions/node/v5.0.0/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:465:22)
at ~/.nvm/versions/node/v5.0.0/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:43:22
at ~/.nvm/versions/node/v5.0.0/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:226:13
at Parser.<anonymous> (~/.nvm/versions/node/v5.0.0/lib/node_modules/speed-test/node_modules/xml2js/lib/xml2js.js:483:18)
at emitOne (events.js:77:13)
at Parser.emit (events.js:169:7)
at Parser.exports.Parser.Parser.parseString (~/.nvm/versions/node/v5.0.0/lib/node_modules/speed-test/node_modules/xml2js/lib/xml2js.js:493:16)
at Parser.parseString (~/.nvm/versions/node/v5.0.0/lib/node_modules/speed-test/node_modules/xml2js/lib/xml2js.js:7:59)
at exports.parseString (~/.nvm/versions/node/v5.0.0/lib/node_modules/speed-test/node_modules/xml2js/lib/xml2js.js:534:19)
at ~/.nvm/versions/node/v5.0.0/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:224:9
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Cannot read property 'settings' of null · Issue #27 - GitHub
It's a problem with the servers url, changing it from http://www.speedtest.net/speedtest-servers-static.php to http://www.speedtest.net/ ...
Read more >Cannot read property 'settings' of undefined when I click ...
This code causes error when I click the submit button (JQuery Validate Uncaught TypeError: Cannot read property 'settings' of undefined ) ...
Read more >Unable to perform speedtest on pppoe interface - Bug
Hello, if the red interface it's configured as pppoe we can't run a speed test from the UI with the following message: **Warning....
Read more >Speedtest.net for unRAID 6.1+ - Page 17 - Plugin Support
I for the life of me, cannot get this to work at my line speeds. I have 1.5Gbps down and 950ish up. I...
Read more >[Resolved] JS error Cannot read property 'concat' making ...
Hi! With the latest DIVI 4. 1 and latest W3 Total Cache plugin 2. 1 and Wordpress 5. 6, I've on this page...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah - for some reason the old speedtest.net URL to obtain servers from is returning 200 OK and an empty response.
http://www.speedtest.net/speedtest-servers-static.php
oddly - if you add a parameter, like:
http://www.speedtest.net/speedtest-servers-static.php?x=y
it returns a valid server set. weird - i wonder if the 200-blank response is getting cached somewhere.
If anyone needs a work around for now, you can initialize your speed test object this way:
Hopefully this self-recovers in a day or two.
Thanks for the debugging. If it occurs again I’ll add a random parameter.