Click here to Skip to main content
15,906,625 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Below is the piece of code I used in a script:
var xhReq = new XMLHttpRequest();
xhReq.open("GET", url, false);
xhReq.send(null);
var serverResponse = xhReq.responseText;

If I paste the url on a browser, the results in json format display. However, when I run this piece of code, I get
800a139e - JavaScript runtime error: NetworkError

I have searched around but can't find a proper solution for it. What will be the possible solution? Thanks.

What I have tried:

0x800a139e - Network error in XMLHttpRequest
Posted
Updated 18-Jun-21 7:28am
v2
Comments
Richard MacCutchan 19-Jun-21 5:01am    
What system are you using to run it, and what url are you trying to access?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900