Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing states for Bahamas #177

Open
namln-hust opened this issue May 23, 2024 · 2 comments
Open

Missing states for Bahamas #177

namln-hust opened this issue May 23, 2024 · 2 comments

Comments

@namln-hust
Copy link

I encountered an error with the API today

  • Request
    curl --location 'https://countriesnow.space/api/v0.1/countries/states' \ --header 'Content-Type: application/json' \ --data '{ "country": "Bahamas" }'

  • Response
    {"error":true,"msg":"country not found"}

Is there anything wrong with my API call or is it an issue with the API data?

@namln-hust
Copy link
Author

namln-hust commented May 23, 2024

I notice that the country name returned from API Get countries and ISO2&3 Codes for Bahamas is Bahamas, while the actual name that is valid in API Get single country and its states and Get all countries and their states should be Bahamas The. Details in This API docs

This seems to be a conflict in data among the APIs.

Can you please fix this?

@MartinsOnuoha
Copy link
Owner

MartinsOnuoha commented May 24, 2024

Hi @namln-hust yes this is a bug, Ideally the name should be "Bahamas" uniformly. I'll open a fix MR for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants