Tanganelli / CoAPthon

CoAPthon is a python library to the CoAP protocol aligned with the RFC
MIT License
224 stars 131 forks source link

[Errno 101] Network is unreachable #134

Closed dcomins closed 5 years ago

dcomins commented 5 years ago

Hello,

At this point I am able to detect 4 nodes with an IPv6 command from my Raspberry Pi (I have IPv6 connection with them). Nevetheless when I request a GET command to my 4 nodes with the CoAPthon library, I get response from 3 nodes but when I request GET to the last node I receive this error and my python script gets stucked. What is the error that I receive? How can I solve it?

image

Tanganelli commented 5 years ago

Are you using client or server? How did you start them? Can you ping the address of the last node?

Il giorno gio 20 dic 2018 alle ore 15:39 dcomins notifications@github.com ha scritto:

Hello,

At this point I am able to detect 4 nodes with an IPv6 command from my Raspberry Pi (I have IPv6 connection with them). Nevetheless when I request a GET command to my 4 nodes with the CoAPthon library, I get response from 3 nodes but when I request GET to the last node I receive this error and my python script gets stucked. What is the error that I receive? How can I solve it?

[image: image] https://user-images.githubusercontent.com/20353282/50290822-2af29c80-046d-11e9-88be-ae50c5d06698.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Tanganelli/CoAPthon/issues/134, or mute the thread https://github.com/notifications/unsubscribe-auth/AGb2-si2K_3lscwbLSywVxLMUP14qTPXks5u66E6gaJpZM4ZcUEU .

dcomins commented 5 years ago

I am using a CoAPthon python client to request GET to my nodes. My nodes have a CoAP server and client into them to receive the requests. I am able to ping all the address of my 4 nodes as you can see here.

These are the 4 nodes addresses:

image

And here I ping the 4 addresses:

image

image

dcomins commented 5 years ago

Ok, solved. I realized I used a bad IPv6 when I made the requests. So I obtained Network is unreachable.