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

UnhandledPromiseRejectionWarning: FetchError: invalid json response body at #12

Open
gitenu opened this issue Sep 11, 2021 · 0 comments

Comments

@gitenu
Copy link

gitenu commented Sep 11, 2021

Appreciate if anyone can point me some direction on this plugin error. I am sure my Livolo Cloud username and password is correct (because I can login to Livolo app), but could not get the plugin running properly with below error:

Any pointer will be appreciated. Fyi, i am iot enthusiast but not a coder.
========================
[9/11/2021, 10:57:49 AM] Homebridge v1.3.4 (Homebridge A65E) is running on port 53784.
(node:11538) UnhandledPromiseRejectionWarning: FetchError: invalid json response body at http://eu.appnew.livolo.com:8080/app/user/login/query?user_name=%redactedUserName% reason: Unexpected token < in JSON at position 0
at /homebridge/node_modules/homebridge-livolo-switches/node_modules/node-fetch/lib/index.js:272:32
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at LivoloApi.connect (/homebridge/node_modules/homebridge-livolo-switches/lib/livolo-api.js:30:20)
(Use node --trace-warnings ... to show where the warning was created)
(node:11538) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:11538) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
================================

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