chrysn / aiocoap

The Python CoAP library
Other
262 stars 119 forks source link

Degraded UX when attempting to interact with non-coap hosts #348

Closed Teufelchen1 closed 1 month ago

Teufelchen1 commented 1 month ago

Hello 🐦

When running aiocoap-client coap://[valid_v6%interface]/ against a device that is up and reachable but does not run a coap server, the user get the awful error: Network error: [Errno 111] received through errqueue. While one can look up the errno number, this is still unnecessary hard and imho a UX failure.

Expected behaviour: The host is up but refuses packets on the coap default port. Are you sure there is a coap server running? Is it on a non default port? (Network error: [Errno 111] received through errqueue)

chrysn commented 1 month ago

Please have a look at #350 for whether that addresses your concerns, would have set the user on the right track, or if there are any enhancements to the messages you'd suggest.