-
Notifications
You must be signed in to change notification settings - Fork 70
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
Demo client not working: getaddrinfo() error: Name or service not known #66
Comments
It's an error only on a very low-level layer, but not really an error in the big picture perspective. Anjay is attempting to resolve the hostname as an IPv6 address (that's what The most relevant log message seems to be this one:
I agree that those handshake errors can be cryptic, but the -26624 code refers to a timeout. You can find that by grepping Mbed TLS sources:
Handshake timeout may mean, well, literally anything ;) but in my experience, the most probable cause is that the DTLS credentials are not recognized by the server. Please double-check that the identity and key are matching on both sides. Please also check that they are in the same format on both sides - since you're using What kind of server are you trying to connect to? Is it an installation of Coiote DM, or maybe Leshan? We may be able to provide hints on configuring the server in that case. If you're sure that everything matches and you're still getting this error, then please provide a packet capture (PCAP). It might be helpful in further debugging the issue. |
Hi @kFYatek Thank you for that explanation. 💯 From that it seem that some corporate firewall is blocking connections to the coap/s ports, as we're using a CoioteDM provided server. |
I'm trying to connect the demo client using:
But nothing happens, I only get some cryptic errors in the log (just showing mos relevant):
The most serious error seem to be this one:
/Anjay/deps/avs_commons/src/net/compat/posix/avs_compat_addrinfo.c:242]: getaddrinfo() error: Name or service not known; family == (avs_net_af_t) 2
Also not sure why it is logged as
DEBUG
when it's clearly an ERROR.Related dependency code here:
https://github.com/AVSystem/avs_commons/blob/a227958d88cd9fc689a90d2c336ee0eaa1daf17f/src/net/compat/posix/avs_compat_addrinfo.c#L239-L270
Click to see code snippet
From:
avs_compat_addrinfo.c
Any idea what's going on here?
The text was updated successfully, but these errors were encountered: