-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
bugSomething that should not be like thatSomething that should not be like thatcomponent:endpointshttp apipriorityHigh piority issueHigh piority issue
Description
When a custom handler is set for a command, and the <host>/api/endpoints resources is fetched (GET), the custom command handler gets overriden.
socket.ref called
request response [ { success: { '/lights/1/state/on': false } } ]
socket.setKeepAlive called true 3000
socket.unref called
socket.setTimeout called 0
User request: null false false 127.0.0.1 GET /endpoints/
User request: null false false 127.0.0.1 POST /endpoints/633481e928a62d4bb14edf00/commands/633481e928a62d4bb14edf01
commnads hanlder size: Map(0) {}
EXECUTE COMMAND!!!!! 633481e928a62d4bb14edf01
Error: Command payload not defined
Add payload to command or write a plugin that implement the command handling
at Commands.execute (/home/marc/projects/OpenHaus/backend/components/endpoints/class.commands.js:142:27)
at /home/marc/projects/OpenHaus/backend/routes/router.api.endpoints.js:28:27
at Layer.handle [as handle_request] (/home/marc/projects/OpenHaus/backend/node_modules/express/lib/router/layer.js:95:5)
at next (/home/marc/projects/OpenHaus/backend/node_modules/express/lib/router/route.js:144:13)
at Route.dispatch (/home/marc/projects/OpenHaus/backend/node_modules/express/lib/router/route.js:114:3)
at Layer.handle [as handle_request] (/home/marc/projects/OpenHaus/backend/node_modules/express/lib/router/layer.js:95:5)
at /home/marc/projects/OpenHaus/backend/node_modules/express/lib/router/index.js:284:15
at param (/home/marc/projects/OpenHaus/backend/node_modules/express/lib/router/index.js:365:14)
at param (/home/marc/projects/OpenHaus/backend/node_modules/express/lib/router/index.js:376:14)
at paramCallback (/home/marc/projects/OpenHaus/backend/node_modules/express/lib/router/index.js:412:21)
Metadata
Metadata
Assignees
Labels
bugSomething that should not be like thatSomething that should not be like thatcomponent:endpointshttp apipriorityHigh piority issueHigh piority issue