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

Request failed with status code 401 #20

Open
EM1138 opened this issue Nov 20, 2022 · 5 comments
Open

Request failed with status code 401 #20

EM1138 opened this issue Nov 20, 2022 · 5 comments

Comments

@EM1138
Copy link

EM1138 commented Nov 20, 2022

I am getting this error in the log. I am running MM 2.21.0 in Windows 10 in sever mode. My OpenWeather API key is working in the default weather app.
[MMM-OpenWeatherForecast] 19-Nov-22 19:15 ** ERROR ** Error: Request failed with status code 401.
Please let me know if I can provide more info to troubleshoot.

@networkmaster
Copy link

I hit the same issue yesterday. Make sure you use the API key that they emailed you and allow up to about 4 hours for it to fully flow into their systems.
Reboot the device for good measure (Some weird caching? idk it worked after a reboot for me despite killing the npm instance multiple times).
After the email key starts working, found the additional API keys created started to work

@EM1138
Copy link
Author

EM1138 commented Nov 24, 2022

@networkmaster
What type of account do you have on OpenWeather.

@networkmaster
Copy link

"One Call by Call" subscription plan with a limit of 1000 calls per day so that i don't get charged.

@EM1138
Copy link
Author

EM1138 commented Nov 24, 2022

Cool. I had the free account initially and then signed up for the One Call by Call and did the same as you. I either missed that in the instructions or something has changed recently where free data has now become subscription data.

@steff-lorenz
Copy link

I do get the error 401 as well. I am using the free account and it worked fine for other modules. Honestly, I don't want to sign up for the One Call by Call ... so is there any request or whatever I have to disable to make it work on the free plan?

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

3 participants