Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when performing observeProperty with binding-coap #1233

Open
hidetak opened this issue Feb 10, 2024 · 0 comments
Open

Error when performing observeProperty with binding-coap #1233

hidetak opened this issue Feb 10, 2024 · 0 comments
Assignees
Labels
binding-coap Issues related to coap protocol binding bug Something isn't working

Comments

@hidetak
Copy link
Contributor

hidetak commented Feb 10, 2024

The following error occurred. I apologize for the inconvenience and would appreciate your confirmation.

Problem

In binding-coap, when observeProperty is performed on the client side, an error occurs on the server and it stops.
The errors that occurred are as follows:

/***/test-node-wot/error-coap-observeProperty/node_modules/@node-wot/binding-coap/dist/coap-server.js:483
                error(`CoapServer on port ${this.port} failed on observe with: ${err.message}`);
                                                                                     ^
TypeError: Cannot read properties of undefined (reading 'message')
    at ObserveWriteStream.<anonymous> (/Users/***/test-node-wot/node_modules/@node-wot/binding-coap/src/coap-server.ts:706:82)
    at ObserveWriteStream.emit (node:events:526:35)
    at ObserveWriteStream.emit (node:domain:488:12)
    at finish (node:internal/streams/writable:937:10)
    at node:internal/streams/writable:918:13
    at processTicksAndRejections (node:internal/process/task_queues:82:21)

environment

  • Mac(Apple siicon)
  • OS: Sonoma 14.1
  • nodejs: v18 or v20
  • node-wot: 0.8.12

Steps to reproduce

  1. get the following code
    https://github.com/hidetak/test-node-wot/tree/main/error-coap-observeProperty
  2. $ npm install
  3. $ npm run start:server
  4. open new terminal
  5. $ npm run start:client
@JKRhb JKRhb self-assigned this Feb 10, 2024
@relu91 relu91 added bug Something isn't working binding-coap Issues related to coap protocol binding labels Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding-coap Issues related to coap protocol binding bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants