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

Connection Problem #211

Closed
ignis-draco opened this issue Sep 21, 2023 · 8 comments
Closed

Connection Problem #211

ignis-draco opened this issue Sep 21, 2023 · 8 comments

Comments

@ignis-draco
Copy link

Describe the bug
Error when starting the adapter

To Reproduce
Steps to reproduce the behavior:

  1. Install adapter
  2. Enter username and password
  3. Start adapter.

I don't know if it's important but I use Firefox 118 without https.

Expected behavior
The adapter should turn green.

Screenshots & Logfiles
Log:

 2023-09-21 09:34:11.913  - error:  bring.0 (923) 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().
--
2023-09-21 09:34:11.914  - error: bring.0 (923) unhandled promise rejection: undefined is not a valid state value
2023-09-21 09:34:11.915  - error: bring.0 (923) Error: undefined is not a valid state value 

Versions:

  • Adapter version: 1.8.1
  • JS-Controller version: 5.0.12
  • Node version: v18.17.1
  • Operating system: Debian 12 (bookworm)

Additional context
Before I updated the js controller, everything ran without a problem.
I don't know if it's important but I use Firefox 118 without https.

@fAz3rX
Copy link

fAz3rX commented Sep 22, 2023

i have the same problem since the update.
tested with Edge and Chrome

@foxriver76
Copy link
Owner

Please use updated version v1.8.2 it should no longer crash and log a more meaningful error in such cases

@ignis-draco
Copy link
Author

Hi,

I have now tried version 1.8.2.
The connection can now be established.
The following error still appears in the log.

2023-09-25 06:44:05.375  - warn: bring.0 (5612) Error: undefined is not a valid state value
2023-09-25 06:44:35.692  - warn: bring.0 (5612) Error: undefined is not a valid state value

Otherwise, it looks like everything is working.

@foxriver76
Copy link
Owner

Next try 1.8.3, the error should be a bit more specific.

@ignis-draco
Copy link
Author

version 1.8.3 log:

2023-09-25 08:35:39.626 - warn: bring.0 (5979) Error on login: undefined is not a valid state value

@foxriver76
Copy link
Owner

Okay interesting the response does not contain the name of the account. When you click in the mobile app on "Profile" in the lower right corner, whats written there on top? For me it is Hi, Fox is there a name displayed for you?

@ignis-draco
Copy link
Author

There was no name specified.
We then entered a name in the user account and the error no longer appeared in the log.
I do not use the app (not even the web version). When I created the account, I didn't have to enter a name.

@foxriver76
Copy link
Owner

Interesting ok, I can fix the error in next version - no problem

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

3 participants