Open ezequiel-umu opened 8 years ago
Difficult to say without replicating the whole scenario. Can you provide more details about how you created the DTLS tunnel and how are you trying to use the library (commands you are using and so on)?
Ok, it seems it doesn't have anything to do with DTLS, as the problem can be reproduced with a simple get request. I'm working on the problem.
I updated the issue. By the way, I'm using lwm2m-iotagent from TelefonicaI+D as software, which uses this library.
Ok. The IoT Agent is using this library to deal with LWM2M, so I'll focus on solving the problem here, and it should be fixed then in the IOTA.
There seem to be a bug in node-coap, middleware.js
, line 54: request.packet
should be packet
. It raises a "request not defined" error that goes all back to the parseRequest()
catch, where it ends up converted in a 5.00 error. Tomorrow, first thing in the morning, I'll make a proposal bugfix to the repository.
I think there could be an abuse of proxy uri which makes this scenario going buggy:
The problem is basically this:
Every request generates an internal server error which have no sense as every packet is exactly the same but with different port configuration.
The scenario can be summarized as:
The third point isn't represented by wireshark capture. Wireshark capture only contains the UDP part of the scenario, which in this case is local (using lo interface).
Any idea?
Note: It may have nothing to do with proxy uri, but I think it is the cause.