I’m working through Level 2 course and getting an error when I try to get info from the REST Countries API: `https://restcountries.com/v3.1/all
Also, getting bounceback with e-mailing [email protected] for quiz 2 score.
I’m working through Level 2 course and getting an error when I try to get info from the REST Countries API: `https://restcountries.com/v3.1/all
Also, getting bounceback with e-mailing [email protected] for quiz 2 score.
It looks like your topic is missing some important information. Could you provide the following if applicable.
Looks like that server has been overloaded with requests, take a look at this discussion in our discord: Discord
You should try to pass query parameters to limit the amount of data requested. e.g.:
https://restcountries.com/v3.1/all?fields=name
Hope this helps!
At the time I’m writing this, the only fields needed from the API are the Region, Subregion, and Name, so you can use:
https://restcountries.com/v3.1/all?fields=name,region,subregion
And it returns properly.
Thanks so much for the guidance and Discord link!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.