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

Errors when retrieving palettes #35

Closed
neilenns opened this issue Jul 4, 2020 · 0 comments · Fixed by #36
Closed

Errors when retrieving palettes #35

neilenns opened this issue Jul 4, 2020 · 0 comments · Fixed by #36

Comments

@neilenns
Copy link
Owner

neilenns commented Jul 4, 2020

(node:5624) UnhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at ServerResponse.setHeader (_http_outgoing.js:526:11)
    at ServerResponse.header (C:\Users\neile\AppData\Roaming\npm\node_modules\node-red\node_modules\express\lib\response.js:771:10)
    at ServerResponse.json (C:\Users\neile\AppData\Roaming\npm\node_modules\node-red\node_modules\express\lib\response.js:264:10)
    at C:\Users\neile\.node-red\node_modules\node-red-contrib-wled2\dist\controllers\palettes.js:76:30
    at step (C:\Users\neile\.node-red\node_modules\node-red-contrib-wled2\dist\controllers\palettes.js:33:23)
    at Object.next (C:\Users\neile\.node-red\node_modules\node-red-contrib-wled2\dist\controllers\palettes.js:14:53)
    at fulfilled (C:\Users\neile\.node-red\node_modules\node-red-contrib-wled2\dist\controllers\palettes.js:5:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

This is because I forgot some return; statements 🤦‍♂️

neilenns added a commit that referenced this issue Jul 4, 2020
@neilenns neilenns mentioned this issue Jul 4, 2020
1 task
neilenns added a commit that referenced this issue Jul 4, 2020
* Errors when retrieving palettes
Fixes #35

* Update changelog
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

Successfully merging a pull request may close this issue.

1 participant