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

Invalid API key error #57

Open
shombando opened this issue Aug 27, 2023 · 12 comments
Open

Invalid API key error #57

shombando opened this issue Aug 27, 2023 · 12 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@shombando
Copy link

I'm getting the following error

Error
Invalid API key. Please see https://openweathermap.org/faq#error401 for more info.

I have created an open weather map account and have used the default key, created a new key, waited several days between account creation and new key creation before using the keys. But I continue to get the same error. I've verified I'm copying and pasting the full key correctly.

Do you have any recommendations?

@farfromrefug
Copy link
Collaborator

@shombando sadly i think owm changed their rules on accessing one call api with free api key. Not much i can do :s
I might look at not using one call api in the future, but it will take me time

@shombando
Copy link
Author

@farfromrefug thanks for the info. In the meantime, it might be a good idea to remove the pop-up asking the user to enter an API key.

@farfromrefug
Copy link
Collaborator

@shombando well still works with old API keys :s

@topcaser
Copy link

Unfortunately it works not with old api keys. The popup will show anyway. Really annoying.

@farfromrefug
Copy link
Collaborator

@topcaser sorry but i tested again with my key and it works fine. At some points they changed api keys and they dont support the single call API. I dont plan on implementing differently, it would requires many http requests which is slow and uses too many resources (not environmentally friendly).
Plus now there is Open-Meteo

@farfromrefug farfromrefug added bug Something isn't working wontfix This will not be worked on labels Jan 6, 2024
@jacobgonzales20
Copy link

jacobgonzales20 commented Apr 2, 2024

@topcaser sorry but i tested again with my key and it works fine. At some points they changed api keys and they dont support the single call API. I dont plan on implementing differently, it would requires many http requests which is slow and uses too many resources (not environmentally friendly). Plus now there is Open-Meteo

I've noticed that open-meteo is far inaccurate in certain parts of some countries.

@bonswouar
Copy link

I got this error with 3 years old api keys too. Maybe we should remove the API 2 as it does not work as intended any more, and add a clearer warning message for users? (it can be very frustrating to think your api key is invalid :))

FYI I ended up subscribing (for free, and limiting to 1000 calls to be sure it stays free), after 15min it worked, using onecall API 3.0

@jacobgonzales20
Copy link

I got this error with 3 years old api keys too. Maybe we should remove the API 2 as it does not work as intended any more, and add a clearer warning message for users? (it can be very frustrating to think your api key is invalid :))

FYI I ended up subscribing (for free, and limiting to 1000 calls to be sure it stays free), after 15min it worked, using onecall API 3.0

I will try to do the subscription thing, like you mentioned. I'm assuming this is what your subscription page looks like.
image

@bonswouar
Copy link

@jacobgonzales20 Exactly!
You can check if it's activated using the api directly meanwhile (for example https://api.openweathermap.org/data/3.0/onecall?lat=SOME_LAT&lon=SOME_LNG&exclude=&appid=YOUR_API_KEY )

@farfromrefug
Copy link
Collaborator

@bonswouar but you need to add a credit card for that subscription right?

@jacobgonzales20
Copy link

from my experience yes, you could always add a visa gift card

@bonswouar
Copy link

bonswouar commented Apr 10, 2024

Right, or you can use a virtual card from some online banking app and cancel it right away (single-use virtual cards aren't accepted though)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

5 participants