-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[BUG] 401 HTTP-code with widget weather-forecast #621
Comments
This comment was marked as outdated.
This comment was marked as outdated.
Hmm, that's weird, I tried with that exact config and it seems to be working fine for me. |
Will invalidate this key in a few hours, but here is a temporary dev API key you can try.
|
I think I see the issue. You're using a standard API key, which works fine for the daily weather, but not for the forecast. I maybe didn't make that clear enough in the docs. ULPT: You can get a free, premium API key by filling in this form. It's a student plan, but there's no verification to check that you are still a student. Todo
|
Hello. Yes, you are right, everything worked successfully with a temporary key. Thank you very much for your help. |
Hi Lissy93, If you are a student or a university scholar, you may obtain access to these packages by doing the following:
Here are two links, one working (without /daily), one not working (yours with /daily). I am currently on the free API plan. If you could remove the /daily from the generated API, then it should work for users on the free plan without a need to sign up for a student plan. https://api.openweathermap.org/data/2.5/forecast?q=Rogers,AR,US&cnt=5&units=imperial&appid=1208f....30dd I don't use Github, so if I've done something wrong, please let me know. I'll try to learn an do better next time. Thanks, |
I agree with @dazaesk in that if the "/daily" was dropped from the URL, there would be no need to request the student API key. I already have an OpenWeatherMap account with a free API key and would like to use that. |
Environment
Self-Hosted (Docker)
Version
2.0.7
Describe the problem
Hello,
I think I've found a bug in using the openweathermap API (api.openweathermap.org) or the API's behavior has changed.
Problem:
I created a widget with weather-forecast and got 401 HTTP-code, where app try to send request.
Widget configuration in conf.yml looks like:
On Network tabs i see request like:
Then i try repeat request with curl and it's really response 401:
But if try send request without daily, it's works fine:
Maybe I missed something, but it looks like an invalid API request. Hope for your update)
Additional info
No response
Please tick the boxes
The text was updated successfully, but these errors were encountered: