Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Key Problems? #77

Open
real-intruder opened this issue Jun 12, 2020 · 21 comments
Open

Key Problems? #77

real-intruder opened this issue Jun 12, 2020 · 21 comments

Comments

@real-intruder
Copy link

I have to change my key each day since the last update to 0.0.34.
Google says that my devices are not reachable.
Then i go to https://node-red-google-home.herokuapp.com/ and make a new Key.
with this key i go to Node red Konfiguration of Nora and then it Works, but only for a Day.

@samubd
Copy link

samubd commented Jun 14, 2020

Same here. Glad to help if needed.

@andrei-tatar
Copy link
Owner

Any errors in node-red console?

@samubd
Copy link

samubd commented Jun 14, 2020

it seems that someting's wrong with the storage of the offline token on server side. Every day I have to login, the heroku app generates a new token as if the previous one were lost. After that I have to update the configuration node in nodered and then redo the account linking in google home.
After the procedure everything works fine but after some time (a day more or less) I have to repeat the procedure...
No errors are displayed in the nodered console: all the nora node appear as "connected"

@Barabba11
Copy link

Maybe you have problems in your phone? Because here all is working fine

@bertreb
Copy link

bertreb commented Jun 14, 2020

I don't have problems with the nora-server, i still have the same token from the beginning.
And logging in to heroku doesn't generate a new token. It just generates a new string, but the unlaying token is still te same (unless you revoke the token).

@real-intruder
Copy link
Author

It Works too, to restart my Raspberry. Then it Works with the old token/key.
also there are 2 temporary posibilitys:
1: Get new Token
2: Restart the Node Red Server
But this works only for a Day.
I have the Problem since my last Palette Update in Node Red. The Time bevore i had no Problems...

@real-intruder
Copy link
Author

real-intruder commented Jun 14, 2020

The token on Phone and on PC are different! But it works when there are devices listened.
When i log in i get every day a new Token.

The last 4 Chars actually in Node Red are "okRw"

With my today login i have a Token with "eBU4"
and all my devices are listened.

Do you like NORA and find it useful? Consider donating Paypal Me
Your devices/state
{
"Zuhause": {
"devices": {
"234aae0.c79be52": {
"type": "light",
"brightnessControl": true,
"turnOnWhenBrightnessChanges": true,
"colorControl": false,
"name": "Sofa",
"roomHint": "Wohnzimmer",
"state": {
"online": true,
"on": false,
"brightness": 100
}
},
"b6c49c13.dde31": {
"type": "switch",
"name": "Verstärker",
"roomHint": "Wohnzimmer",

and so on

@real-intruder
Copy link
Author

NORA

Now the Devices are Offline in Google Home again

@real-intruder
Copy link
Author

Restart Flow Works too, to bring the devices Online again

@samubd
Copy link

samubd commented Jun 16, 2020

I don't have problems with the nora-server, i still have the same token from the beginning.
And logging in to heroku doesn't generate a new token. It just generates a new string, but the unlaying token is still te same (unless you revoke the token).

no, in my case a new login into heroku app generates a new token thus the list of devices (the json under "revoke token") is empty...

@bertreb
Copy link

bertreb commented Jun 16, 2020

This is an explanation i got from @andrei-tatar 'The signed part of the token changes. It's because it contains some salt to make it more secure. You can read more about it here: https://jwt.io/. It will change the string value on each login but it's the same content.'

@real-intruder
Copy link
Author

real-intruder commented Jun 17, 2020

Node Red

All Devices Show Connected, but they are Offline!

WhatsApp Image 2020-06-17 at 16 54 14

all i do is "aktualisieren" on the Tab of Nora Konfig

aktualisieren

without any Change of the Token
and Deploy

Then it Works again vor 1-2 Days or only some Hours.

Node Red v1.0.6
node-red-contrib-nora 0.0.34

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=raspbian
ID_LIKE=debian

Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux

@real-intruder
Copy link
Author

With which File of Node Red can i Help? Where are debug Files to Support the Developer?
Can i Run Something to Log the Error?

@real-intruder
Copy link
Author

How can I install a previous version of Nora?

@real-intruder
Copy link
Author

I have deinstalled Nora and reinstalled Nora 0.0.34 ... same Problem.
Now i habe deinstalled Nora and reinstalled Nora@0.0.31.

Let's see if the problem comes up again.

@real-intruder
Copy link
Author

No Poblems since Yesterday with Version 0.0.31

@real-intruder
Copy link
Author

Still no Problems with Version 0.0.31.
The Error must be in the Code of node-red-contrib-nora Plugin beetween 0.0.32-0.0.34

@samubd
Copy link

samubd commented Jul 1, 2020 via email

@samubd
Copy link

samubd commented Jul 2, 2020

Yesterday a new token have been issued after a login into the web application. I've updated the token into nodered configuration and everything was workng correctly.
A few minutes ago it stopped working: this is the console message that I see:
"nora (SWRXI): socket connection error: not authorized"
(using version 0.0.34)

@real-intruder
Copy link
Author

Still have no Problems since i have reinstalled Version 0.0.31 since 14 days ago.
It must be a Problem in the Code of the Plugin nora. The other Components still the same.

@real-intruder
Copy link
Author

Yesterday a new token have been issued after a login into the web application. I've updated the token into nodered configuration and everything was workng correctly.

You dont´t need a new Key. When you restart the nora Plugin or the whole Server it works too.
The Problem is, that nora don´t connect to Nora Service and report the Devices.

The Key form a PC Login and a Smartphone Login can be difference, but the devices only shown, when nora Plugin is connected to the Nora Service...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants