question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error running speed-test: "Cannot read property 'settings' of null"

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
brettmarlcommented, Nov 14, 2015

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:

    test = speedTest({
        maxTime: 15000,
        serversUrl: 'http://www.speedtest.net/speedtest-servers-static.php?r=' + Math.random()
    });

Hopefully this self-recovers in a day or two.

0reactions
ddsolcommented, Nov 27, 2015

Thanks for the debugging. If it occurs again I’ll add a random parameter.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found