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

Is it possible to consider handling three-party errors more elegantly #176

Open
cold-bin opened this issue Nov 25, 2023 · 2 comments
Open

Comments

@cold-bin
Copy link

problem I meet:
2023/11/25 09:36:44 Failed to fetch weather data: Unable to unmarshal response (http://api.openweathermap.org/data/2.5/forecast?zip=106.607 29.531&appid=a2d79c2afdb849ba90baa1b254f52ca3&units=metric&lang=en): json: cannot unmarshal number into Go struct field openWeatherResponse.cod of type string
The json body is: {"cod":401, "message": "Invalid API key. Please see https://openweathermap.org/faq#error401 for more info."}

@anveshthakur
Copy link

Hi @kordianbruck , Can I take this up?

@kordianbruck
Copy link
Collaborator

For sure, go for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants