The issue I am having is that I am trying to create a list of Star Wars Starships that renders to separate card data like a real estate website. This is for a different school project I am working on and for some reason I get no data returned. Thanks.
When you navigate to the URL you are making a GET request to, what do you see?
Do you see some text-representation of JSON data?
Or, do you see rendered HTML webpage?
If the latter, then it means the URL does not return any JSON. Therefore, the .json method will not be able to parse the data. Typically, I would expect an error like:
Uncaught error: Unexpected token in JSON at position…
Now, diving deeper into this - best way to start debugging:
Head to the URL
Open your browser devtools
Look at the Network tab: ignore the red (failed requests) - just my adblock
Thank you so much. I am new to programming and was working on this for days, trying to figure out what was wrong. Thanks again for the dev tools suggestion. Looks like I will have to make a get request that is not .json