rocksdanister / weather

Windows native weather app powered by DirectX12 animations
https://rocksdanister.com/weather
MIT License
393 stars 21 forks source link

401 Unauthorized error when switching OpenWeatherMap #55

Closed keshka closed 5 months ago

keshka commented 5 months ago

I tried using OpenWeatherMap by creating an account and obtaining an API key. Once the information was entered, Lively Weather will not accept any information in the search box. Entering a single digit or letter results in a error. I have attached a screen shot of the error. Here is the text of the error: Lively Weather (Beta)

45.56467°N 117.92617°W|

X C

0

X

Error

System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() + 0xa0 at Drizzle.Weather.OpenWeatherMapWeatherClient .< GetGeocodingDataAsync>d_25.MoveNext() + 0x1a5 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17 at Drizzle.Weather.OpenWeatherMapWeatherClient .< GetLocationDataAsync>d_19.MoveNext() + 0x1b4 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17 at Drizzle.UI.UWP.ViewModels.ShellViewModel .< FetchLocations>d_81.MoveNext() + 0x10b

Learn More

X

Add a location to get started. Screenshot 2024-01-25 101412

rocksdanister commented 5 months ago

https://github.com/rocksdanister/weather/wiki/Weather-Sources

API key can take a day or two to activate, if it does not work immediately (Unauthorized error) try again later.

Also the format is Latitude, Longitude which in this case 45.56467, 117.92617

keshka commented 5 months ago

lol....sorry about that Danister, I found your solution shortly after I posted but could not delete the post