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

Failed to update smartapp settings due to constraint violation on node-red side #87

Open
sdalu opened this issue Nov 10, 2022 · 1 comment

Comments

@sdalu
Copy link

sdalu commented Nov 10, 2022

It is not possible, to integrate callback for new devices. Used to work.

I'm on :

  • node-red: 3.0.2
  • node-red-contrib-smartthings: 0.0.43
  • smartthings hub: firmware: 000.045.00011, controller version: 2.3.10-1
  • android app: 1.7.91.24

When using the smartthing android app to update the list of notifications, updating settings failed, with the following log in node-red:

2022-11-10T18:29:19.408Z error: Error: Request failed with status code 422: {"requestId":"B8EFFE9C-E61E-4C28-9844-B2A9AC09DF9C","error":{"code":"ConstraintViolationError","message":"The request is malformed.","details":[{"code":"NotValidValue","target":"capability","message":"healthCheck is not a valid value.","details":[]}]}}
    at createError (/home/sdalu/.node-red/node_modules/@smartthings/smartapp/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/home/sdalu/.node-red/node_modules/@smartthings/smartapp/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/home/sdalu/.node-red/node_modules/@smartthings/smartapp/node_modules/axios/lib/adapters/http.js:269:11)
    at IncomingMessage.emit (node:events:539:35)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
2022-11-10T18:29:19.409Z debug: RESPONSE: {
  "statusCode": 500,
  "message": "Server error: 'Error: Request failed with status code 422: {\"requestId\":\"B8EFFE9C-E61E-4C28-9844-B2A9AC09DF9C\",\"error\":{\"code\":\"ConstraintViolationError\",\"message\":\"The request is malformed.\",\"details\":[{\"code\":\"NotValidValue\",\"target\":\"capability\",\"message\":\"healthCheck is not a valid value.\",\"details\":[]}]}}'"
}
@sdalu sdalu changed the title Failed to update smartapp settings (constraint violation) Failed to update smartapp settings due to constraint violation on node side Nov 11, 2022
@sdalu sdalu changed the title Failed to update smartapp settings due to constraint violation on node side Failed to update smartapp settings due to constraint violation on node-red side Nov 11, 2022
@sdalu
Copy link
Author

sdalu commented Nov 11, 2022

Removing reference to healthCheck in smartthings-config.js seems to fix things, but I'm not sure about the consequences...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant