apilayer / restcountries

Get information about countries via a RESTful API
https://restcountries.eu
Mozilla Public License 2.0
2.24k stars 355 forks source link

Some requests return a list with the value null inside #284

Open chrisbartoloburlo opened 2 years ago

chrisbartoloburlo commented 2 years ago

This happens for both v1 and v2:

When sending a request for a country via a non-existent alpha code we get [null], rather than just the empty list [].

curl -v \
  --url 'http://localhost:8080/rest/v2/alpha?codes=QG' 
amatosg commented 2 years ago

this project is now dead :( as such, I forked it here