ably / ably-go

Go client library SDK for Ably realtime messaging service
https://ably.com/download
Apache License 2.0
81 stars 31 forks source link

ably.WithEnvironment("dev:name") gives a confusing error message #566

Open amnonbc opened 1 year ago

amnonbc commented 1 year ago
ably.WithEnvironment("dev:name") 

or any environment name containing a colon will give a confusing error message.

[ERROR] Received recoverable error parse "wss://dev:name-realtime.ably.io": invalid port ":name-realtime.ably.io" after host`This causes additional pain as the colon form is used internally by Ably's Devops tooling.

A clearer, more helpful error message would make these failures easier to understand.

┆Issue is synchronized with this Jira Task by Unito

sync-by-unito[bot] commented 1 year ago

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3080