Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Handle no connection error #27

Open
kitplummer opened this issue Sep 29, 2022 · 1 comment
Open

Handle no connection error #27

kitplummer opened this issue Sep 29, 2022 · 1 comment

Comments

@kitplummer
Copy link
Contributor

Currently throws GraphError if "No such host is known" which results when no connection exists

@kitplummer
Copy link
Contributor Author

Error: Request error:
reqwest::Error {
    kind: Request,
    url: Url {
        scheme: "https",
        cannot_be_a_base: false,
        username: "",
        password: None,
        host: Some(
            Domain(
                "graph.microsoft.com",
            ),
        ),
        port: None,
        path: "/v1.0/me",
        query: None,
        fragment: None,
    },
    source: hyper::Error(
        Connect,
        ConnectError(
            "dns error",
            Os {
                code: 11001,
                kind: Uncategorized,
                message: "No such host is known.",
            },
        ),
    ),
}

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

No branches or pull requests

1 participant