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

Better error message when invalid HTTP_PROXY is set #144

Open
kjk opened this issue Mar 3, 2019 · 0 comments
Open

Better error message when invalid HTTP_PROXY is set #144

kjk opened this issue Mar 3, 2019 · 0 comments

Comments

@kjk
Copy link
Contributor

kjk commented Mar 3, 2019

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).

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

No branches or pull requests

1 participant