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

Retry connection with IP address if hostname does not work and vice versa #96

Open
AlCalzone opened this issue Jul 8, 2018 · 3 comments
Assignees

Comments

@AlCalzone
Copy link
Owner

No description provided.

@AlCalzone AlCalzone self-assigned this Jul 8, 2018
@tomekc
Copy link

tomekc commented Apr 12, 2020

With latest version as of now (2.1.4) I am getting error when trying to connect using hostname:

2020-04-12T19:13:37.487Z Found TRADFRI: TRADFRI-Gateway-4491603161db.local, gw-4491603161db, 1.10.30
2020-04-12T19:13:37.487Z Authenticating with gateway, security code <REDACTED>
2020-04-12T19:13:37.498Z [ERROR] Something went wrong... Error: No security parameters given for the resource at coaps://tradfri-gateway-4491603161db.local:5684

When I resolve the hostname to IP and use it for connecting it works fine and I am getting the credentials. Is this something related to this enhancement?

@AlCalzone
Copy link
Owner Author

Maybe you've found the underlying issue. The params are set for TRADFRI-Gateway-4491603161db.local, but the connection code tries to find them for the lowercase variant tradfri-gateway-4491603161db.local.

@AlCalzone
Copy link
Owner Author

v2.1.5 will be released in a couple of minutes. Please try that one.

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

No branches or pull requests

2 participants