FCC Weather App: Why Can't I Chain .getJSON() methods together? <SOLVED>

My project and its code are here: http://codepen.io/teknoformula/pen/bqWbaj

I’ve been stuck on this project for a while, and it seems that the data from the openWeather API won’t log to the console because somehow, the new URL I made for the AJAX request gets appended to a codepen url, causing an error 404. Is there a workaround to prevent this from happening, or did I make any errors that could cause this? I appreciate any help!


Put http:// at the front of your api link.

1 Like

^I added that to the front of the every API variable. It fixed the project’s code. Thanks!