Git Product home page Git Product logo

Comments (4)

Chenamob avatar Chenamob commented on August 16, 2024

for node 12.15.0

debian@beaglebone:~$ sudo coap get coap://[fd00::212:4b00:1cbc:1d51]/node/dtls -p 11223344
[sudo] password for debian:
events.js:200
      throw er; // Unhandled 'error' event
      ^

Error: getaddrinfo ENOTFOUND [fd00::212:4b00:1cbc:1d51]
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26)
Emitted 'error' event on OutgoingMessage instance at:
    at RetrySend.emit (events.js:223:5)
    at /usr/lib/node_modules/coap-cli/node_modules/coap/lib/retry_send.js:49:28
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  errno: 'ENOTFOUND',
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: '[fd00::212:4b00:1cbc:1d51]'
}
debian@beaglebone:~$ node -v
v12.15.0

from coap-cli.

Citrullin avatar Citrullin commented on August 16, 2024

When creating a workaround in /etc/hosts for #73, I end up in this error as well.

from coap-cli.

playhard21 avatar playhard21 commented on August 16, 2024

Did anyone slove this even I am having same issue. I can get resources with aiocaop but not with coap. I am using version 0.7.1
Thank you

from coap-cli.

JKRhb avatar JKRhb commented on August 16, 2024

To give you a brief update on this issue: The problem arises from the URL constructor that is currently being used. Here, the square brackets are not being removed from literal IP addresses. Node's net module, which is being used for determining the address type, however, only accepts IPv6 addresses without the square brackets. Therefore, some manual adjustments are required to get this to work. I will soon try to provide a fix for this (I already implemented a solution for this problem in node-coap).

from coap-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.