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

Improve TibberQuery #17

Closed
bisand opened this issue Apr 10, 2022 · 1 comment
Closed

Improve TibberQuery #17

bisand opened this issue Apr 10, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@bisand
Copy link
Owner

bisand commented Apr 10, 2022

When Tibber servers returns text only, we have to improve the error handling and handle errors like this:

29 Mar 18:24:00 - [red] Uncaught Exception:
29 Mar 18:24:00 - [error] TypeError: Cannot create property 'httpCode' on string 'GraphQL queries must be strings.'
    at IncomingMessage.<anonymous> (/config/node-red/node_modules/tibber-api/src/nodes/TibberQuery.ts:98:46)
    at IncomingMessage.emit (node:events:532:35)
    at endReadableNT (node:internal/streams/readable:1346:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
@bisand bisand added the enhancement New feature or request label Apr 10, 2022
@bisand bisand self-assigned this Apr 10, 2022
@bisand
Copy link
Owner Author

bisand commented Nov 30, 2022

This issue is already addressed

@bisand bisand closed this as completed Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant