-
Notifications
You must be signed in to change notification settings - Fork 222
Cannot read property 'access token' of undefined #150
Comments
Are you running GAR inside of docker as well? Or on the native raspbian OS? |
He is using my Hassio addon. But I don’t think this is related to the addon as it is just an image with GAR pre installed. |
Grr, not this again. It's such a sporadic and random issue, it's nearly impossible to figure out what's causing it. I have a suspicion it depends on the JSON file you downloaded. Which one did you download from the console? |
Could it be browser related when uploading the file? |
Don't think so as it'll work fine for a few days and then randomly stop |
If this is in a docker image, are you trying to expose that folder to the host OS as well? You could have problem if the host and GAR are trying to access the file simultaneously. I don't know how the plug-in is running the docker image and if the filepath is synced to the host OS. |
The config file is mounted to the host of course, like nearly every docker set up. I don’t think this is the cause of this problem. @elserge82 are you able to send the complete log of the addon when it fails? |
If you tell me your exact request( I have many logs don't know what you're referring to), I'm ready to do so. |
Can you go to the addon in hassio, restart the addon, wait till it’s running again and send a broadcast command. Could you then copy the complete log on the addon page? |
`Assistant Relay is now starting...
/\\\\\\_/\\/\\/\\\\_
[PM2] Spawning PM2 daemon with pm2_home=/root/.pm2 |
|
Yeah, the config file is not being recognized. This is a docker problem, not a GAR relay problem. |
you might be right. the problem occurs on reboot |
I'd take a closer look at the docker image you're running and see what mappings it has for your config file and why that isn't persistent across executions of the container. |
@elserge82 Sorry for letting you wait. Do you get errors in the log if you are visiting the settings page? The config file is being loaded as well if you visit this page. |
I'll check it when I get back home. Thank you guys for your support |
I updated the addon to the latest version. The settings page wont load .Uninstalled reinstalled the addon everything is back to normal. |
Following a HomeAssistant / HASSIO Assistant-Relay setup tutorial, I encountered the above errors in the container logs when testing in the AR Sandbox. Resolved by removing and reinstalling the add-on in HASSIO and re-creating / re-authenticating my assistant-relay user. To me this suggests the culprit is likely that the access_token initialization failed the first time around. After that, all errors have cleared up and Assistant-Relay is working magnificently! Related issues: Hope this can help anyone else who encounters this class of issue in the future. <3 |
Thank you for posting this! It was the same for me and I was going crazy. I think because Safari blocked the Google Signin pop-up. Your solution fixed it. Cheers |
Uh oh!
There was an error while loading. Please reload this page.
The first time I installed your plugin. I created a new user and everything was successful.Few days later the plugin stopped with the following error:
getting metadata from plugin failed with error: Cannot read property 'access token' of undefined.
I added a new user and everything went fine. Few days later , the plugin no longer working with the same error. Not sure what caused it but whenever I need a relay command it ended unsuccessful. :)
My platform consist of Hassio docker on Raspbian.
Thank you. And hopefully with your help I can sort this out .
The text was updated successfully, but these errors were encountered: