This forum is now read-only. Please use our new forums at discuss.codecademy.com.

How to use APIs with JavaScript Forum

View Course » View Exercise

759 points
B74de54036b0378f4a6a942ec8ee9523?s=140&d=retro
Submitted by
goodlikejohnnyb
about 2 years ago

NetworkError - When I run the provided js, it fails to load the page when the request is sent.

I just tried to start the Mandrill API javascript course, and the first screen is just some simple js to send a request for codecademy's homepage, but I get the following error:

NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://www.codecademy.com/'.

Can anybody help me figure out why? I'm not off to a good start in this course...


5 votes

permalink

Found the answer in another thread, the url needs the 's' for https secure

759 points
B74de54036b0378f4a6a942ec8ee9523?s=140&d=retro
Submitted by
goodlikejohnnyb
about 2 years ago

2 Comments

Picture Charise Walraven about 2 years ago

Tx

5505104776b8fedea800573c_140255832 Emily Fung about 2 years ago

Thank you!