Closed JoeHCQ1 closed 8 months ago
Similarly, I get no error when my authentication fails. It doesn't hang, but it just hands me back the sender w/o indications there was a problem.
Sorry for the late reply. I've tried creating a sender when there is no QDB server running and immediately got the following:
$ go run main.go
2024/03/22 09:06:18 failed to connect to server: dial tcp 127.0.0.1:9009: connect: connection refused
exit status 1
Closing this issue for now. Feel free to reopen if the issue persists.
Off-topic: v3 shipped HTTP sender which includes better error propagation, automatic retries, and allows explicit control over transactions.
The Bug
If you try to create a sender with a bad URL the code hangs indefinitely. I think it should return an error, perhaps after a configurable timeout.
To Replicate
You should be able to replicate this behavior by running the following code:
For Others Looking For Connection URL:
For anyone else trying to connect to your cloud trial instance, poke around your trial instance webpage a bit, but not in the web-console. You'll find the correct URL in places where they talk about adding data to the DB. The port is not 9009, unlike the local hello-world install.