ahmadawais / corona-cli

🦠 Track the Coronavirus disease (COVID-19) in the command line. Worldwide for all countries, for one country, and the US States. Fast response time (< 100ms). To chat: https://twitter.com/MrAhmadAwais/
https://NodeCLI.com
MIT License
1.85k stars 191 forks source link

It shows API is down if the country name includes spaces #96

Closed DannyFeliz closed 4 years ago

DannyFeliz commented 4 years ago

corona-cli version: v5.1.1 OS: Ubuntu 20.04


If the country name has spaces it always shows "⚠ API is down, try again later". It worked before at least in the early release of this CLI. You can try with:

corona-cli

ahmadawais commented 4 years ago

You don't seem to be using the latest version, update and then report again if the issue is there.

ahmadawais commented 4 years ago

Most probably the name you are writing is wrong corona "dominican republic" works for me. Since there's a space there in the name put it inside "…" so that it is inerpretted as a single value.

DannyFeliz commented 4 years ago

@ahmadawais It works when it's wrapped in quotes corona "dominican republic"

Thanks