Skip to content

Obscure error message when connection to Lightdash doesn't work #1

@bramrodenburg

Description

@bramrodenburg

Description

When you incorrectly configure the Client, then the error message returned is rather vague and obscure. It would be of great help if the error message provided actually informs the user what is wrong. E.g. incorrect credentials or cannot connect to the provided instance.

Reproduction path

  1. Run the code below.
from lightdash import Client

client = Client(
    instance_url="https://app.lightdash.com",
    access_token="xxxx",
    project_uuid="xxxx"
)
  1. You will get an error message similar to:
httpx.ConnectError: [Errno 8] nodename nor servname provided, or not known

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