Skip to content

Improve weather module error messages #86

@RAprogramm

Description

@RAprogramm

Problem

Weather module shows generic 'Internal server error' without context, making debugging impossible.

Solution

  • Add HTTP status code checking before JSON parsing
  • Provide specific error messages for different failures:
    • 401: Invalid API key
    • 404: Location not found
    • 429: Rate limit exceeded
    • 500+: Server errors
    • Network: Timeout/connection errors

Status

Already implemented in commit 1297816 but needs proper PR workflow.

Closes #86

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions