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.

xhr.open is not a function

See original GitHub issue
xhr.open(method, uri, !sync, options.username, options.password)
        ^

TypeError: xhr.open is not a function
    at _createXHR (/Users/nick/invintus/api-adapter/node_modules/xhr/index.js:174:9)
    at Function.createXHR.(anonymous function) [as post] (/Users/nick/invintus/api-adapter/node_modules/xhr/index.js:16:16)
    at fetch (/Users/nick/invintus/api-adapter/index.js:21:9)
    at Object.<anonymous> (/Users/nick/invintus/api-adapter/example/index.js:7:9)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:457:10)
    at startup (node.js:136:18)
api-adapter(master) nick$ vim node_modules/xhr/index.js

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
nichothcommented, Jun 14, 2016

Yes, I was using it in Node, but it’s browser only. See the nets module for something that works in both.

1reaction
TehShrikecommented, Sep 9, 2016

Ah, I can see how that would cause confusion. I’ve suggested an edit in #132 that should hopefully make that clearer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - XMLHttpRequest in browser open is not a function ...
1 Answer 1 · createXHR is a function, not an object, so you shouldn't be using the new keyword. · xhr is not...
Read more >
"TypeError: XMLHttpRequest.Open is not a function" error ...
I have the following javascript code: var XmlHttp = new XMLHttpRequest(); XmlHttp.Open("GET" ...
Read more >
XMLHttpRequest.Open is not a function" error message - MSDN
When I try to call a generic handler from java script I get the following error in Firefox ,Chrome and IE. I got...
Read more >
XMLHttpRequest.Open is not a function" error message
I have the following javascript code: var XmlHttp = new XMLHttpRequest(); XmlHttp.Open("GET", "http://localhost/MenuOptions.aspx?ca_key=1631&isRollup=1", false);.
Read more >
Error: Ajax is not a function - Educative.io
AJAX is not a programming language. It requires a built-in browser with the XMLHttpRequest object that requests data from the server, and it...
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