Comments (4)
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.
When creating a workaround in /etc/hosts
for #73, I end up in this error as well.
from coap-cli.
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.
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)
- Lead maintainer wanted HOT 11
- URI with encoded characters not supported HOT 1
- How do I send a parameter value? HOT 1
- Not working anymore after breaking changes in `commander` dependency?
- CLI does not exit since 0.11.0 HOT 5
- Numeric options are not encoded correctly
- Add option -H <headers> (for e.g. auth headers) HOT 4
- Observing more than one server HOT 2
- Remove CONTRIBUTORS.md and associated workflow? HOT 1
- support param HOT 1
- Echo adds newline to payload HOT 4
- Support DTLS Setup HOT 1
- Add CoAP Option in Request HOT 1
- Support coap options as hex HOT 1
- How to realized request with uri_query? HOT 1
- Tokens with 8 bit length HOT 3
- coaps (CoAP over DTLS) support as described in RFC 7252 section-9.1
- How set up GET command with proxy-uri option HOT 1
- Cannot set property 'method' of undefined HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coap-cli.