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

ERR_HTTP_HEADERS_SENT / Cannot read properties of undefined #386

Open
mStirner opened this issue Dec 29, 2023 · 1 comment
Open

ERR_HTTP_HEADERS_SENT / Cannot read properties of undefined #386

mStirner opened this issue Dec 29, 2023 · 1 comment
Labels
bug Something that should not be like that investigate

Comments

@mStirner
Copy link
Member

TypeError: Cannot read properties of undefined (reading 'value')
    at Command.<anonymous> (/home/marc/projects/OpenHaus/backend/plugins/79ff8232-3084-4bbc-8e9c-42bb03203fb0/models/SHRGBW2.js:114:55)
    at Command.trigger (/home/marc/projects/OpenHaus/backend/components/endpoints/class.command.js:246:16)
    at /home/marc/projects/OpenHaus/backend/routes/router.api.endpoints.js:42:21
    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 paramCallback (/home/marc/projects/OpenHaus/backend/node_modules/express/lib/router/index.js:412:21)
Command timedout! Execution was not successful, worker function: [Function (anonymous)]
node:_http_outgoing:644
    throw new ERR_HTTP_HEADERS_SENT('set');
    ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home/marc/projects/OpenHaus/backend/node_modules/express/lib/response.js:794:10)
    at ServerResponse.send (/home/marc/projects/OpenHaus/backend/node_modules/express/lib/response.js:174:12)
    at ServerResponse.json (/home/marc/projects/OpenHaus/backend/node_modules/express/lib/response.js:278:15)
    at ServerResponse.res.json (/home/marc/projects/OpenHaus/backend/routes/rest-handler.js:35:18)
    at /home/marc/projects/OpenHaus/backend/routes/router.api.endpoints.js:57:25
    at /home/marc/projects/OpenHaus/backend/components/endpoints/class.command.js:234:17
    at Timeout._onTimeout (/home/marc/projects/OpenHaus/backend/helper/timeout.js:47:13)
    at listOnTimeout (node:internal/timers:559:17) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
@mStirner mStirner added the bug Something that should not be like that label Dec 29, 2023
@mStirner
Copy link
Member Author

I should added more context/details...
Cant remember how this was produced.

Perhaps with the "repeating" (OpenHausIO/frontend#32) command sending from the frontend?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that should not be like that investigate
Projects
None yet
Development

No branches or pull requests

1 participant