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

App says that my API key is invalid #29

Closed
MattRGX opened this issue Apr 11, 2023 · 16 comments
Closed

App says that my API key is invalid #29

MattRGX opened this issue Apr 11, 2023 · 16 comments
Labels
wontfix This will not be worked on

Comments

@MattRGX
Copy link

MattRGX commented Apr 11, 2023

Hello,

I've created an account on OpenWeatherMap (free account) and get my Api key.

It was 2 ou 3 days ago. Now on my account it says that the API key is "active".

But when i put it in the app, i got the message that my key is invalid.

Thanks for your help.

@farfromrefug
Copy link
Collaborator

@MattRGX ok i ll give a look on my side.

@20000lbs-of-Cheese
Copy link

Same exact issue, on Android

@farfromrefug
Copy link
Collaborator

@n5corp @MattRGX i just tried with my key and it works. Does you key give you access to the onecall api?
Any chance one of you can share his key privately?

@MattRGX
Copy link
Author

MattRGX commented Apr 14, 2023

I took the free plan on openweathermap.

image

So i guess we don't have access to the onecall api with this free plan.

The other plan where we have access to the onecall api is also free.

But we need to put the credit card numbers to get the API key because up to a certain point it's not free anymore.
And obviously for security and money purposes, i don't want to put my credit card numbers on the OWM website.

@farfromrefug
Copy link
Collaborator

@MattRGX i LL take a look. It was not like that before.
But I understand I wouldn't add my credit card either

@farfromrefug
Copy link
Collaborator

@MattRGX could you ensure there is no unwanted spaces in your apikey (like at the end) from the application settings.
It did just happened to me that copying from the website i get a space at the end and end up with an invalid api key error

@MattRGX
Copy link
Author

MattRGX commented Apr 15, 2023

@MattRGX could you ensure there is no unwanted spaces in your apikey (like at the end) from the application settings. It did just happened to me that copying from the website i get a space at the end and end up with an invalid api key error

I've just double checked again the API key and there is no extra space or unwanted spaces at the beginning or at the end.

What plan do you use for your API key on OWM website ?

@farfromrefug
Copy link
Collaborator

@MattRGX thanks i still made a new release with a fix for that (and other fixes).
as for my i use the base plan.Is it the same for you? I even tried to generate a new key and it is working
Screenshot 2023-04-15 at 09 38 23

@MattRGX
Copy link
Author

MattRGX commented Apr 15, 2023

@farfromrefug i use the free plan that is available in the "Professional collections" subscription plan.
I'm not using the other free plan that is available in the "One call by call" subscription plan.

@farfromrefug
Copy link
Collaborator

Screenshot 2023-04-15 at 10 18 37

I guess i have the same. Could you share your. key privately? My mail is dev at akylas dot fr

@any1th3r3
Copy link

FYI I'm on the same plan and I have the same issue, although I can query the API directly just fine with my key.

@farfromrefug
Copy link
Collaborator

@abalteaux which API can you query directly?
I think owm changed the free tier and the one call api is not available anymore.
I am working on a new free weather provider

@any1th3r3
Copy link

any1th3r3 commented May 10, 2023

@farfromrefug Here's an example of what I can query directly https://api.openweathermap.org/data/2.5/weather?q=$CITY_NAME&appid=$API_KEY
I only looked briefly at https://github.com/Akylas/oss-weather/blob/master/app/services/owm.ts#L43-54 and it looked fairly similar

@farfromrefug
Copy link
Collaborator

@abalteaux not the same api. I could switch to use multiple api calls but I would prefer not to.

@xerves78
Copy link

i have the same problem :(

my free api key is unvalid and doesnt work in the app :(

how can i fix it ?

@farfromrefug
Copy link
Collaborator

@xerves78 sadly it seems we can't . this JS why I added open-meteo provider which will always be free

@farfromrefug farfromrefug added the wontfix This will not be worked on label Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

5 participants