Skip to content

Better error message when invalid HTTP_PROXY is set #144

@kjk

Description

@kjk

When HTTP_PROXY env variable is set, Go uses that for HTTP requests.
If that is invalid or proxy server fails, we return rather unhelpful error message:

Tried to send *ravendb.GetDatabaseTopologyCommand request via GET http://live-test.ravendb.net/topology?name=demo to all configured nodes in the topology, all of them seem to be down or not responding. I've tried to access the following nodes: ' of type *ravendb.AllTopologyNodesDownError

We kind of lie (we didn't try to connect to http://live-test.ravendb.net but to whatever HTTP_PROXY was set to) and it's hard to diagnose (stumped me for a while).

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