Services II: answer pre-filled but browser does not pull json


#1

https://www.codecademy.com/courses/learn-angularjs/lessons/services/exercises/services-ii?action=lesson_resume

At service II step 2/3, all answers are pre-filled upon opening the files, and I can see green checkboxes for all tasks. And yet, I’m not seeing the built-in browser display the json that it is supposed to pull from AWS. I believe another student @arraysolver42817 was having a similar problem.

In the chrome javascript console I saw the following error and realized that the pre-filled answer has a typo: the AWS json link was using http instead of https. Changing to https fixed the issue.

“Mixed Content: The page at ‘https://www.codecademy.com/courses/learn-angularjs/lessons/services/exercises/services-ii?action=lesson_resume’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://s3.amazonaws.com/codecademy-content/courses/ltp4/forecast-api/forecast.json’. This request has been blocked; the content must be served over HTTPS.”

By the way on the index.html the to the bootstrap.min.css should also use https for the page to render properly in the course browser.


#2

I have the same problem. Solution helps a lot.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.