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

Errors after setting up locally #492

Open
antonio-fiol opened this issue Jan 11, 2020 · 5 comments
Open

Errors after setting up locally #492

antonio-fiol opened this issue Jan 11, 2020 · 5 comments

Comments

@antonio-fiol
Copy link

I was seeing weird behavior, but managed to add a device. When trying to repeat the steps to document the issue, here is how it goes.

It seems that it starts correctly...

$ npm run start:local

> [email protected] start:local /home/user/smart-home-nodejs
> node dist/index.js isLocal

Smart home server listening at :::3000

COPY & PASTE NGROK URL BELOW
https://70432596.ngrok.io

=====
Visit the Actions on Google console at http://console.actions.google.com
Replace the webhook URL in the Actions section with:
    https://70432596.ngrok.io/smarthome

In the console, set the Authorization URL to:
    https://70432596.ngrok.io/fakeauth

Then set the Token URL to:
    https://70432596.ngrok.io/faketoken

Finally press the 'TEST DRAFT' button

Then I change the URL in index.html and start the front-end, point my browser to it, and this appears on the log:

{ userId: '1234', deviceId: '1rg', localDeviceId: null }
{ userId: '1234', deviceId: '1rg', localDeviceId: null }
{
  "error": {
    "code": 429,
    "message": "Resource has been exhausted (e.g. check quota).",
    "status": "RESOURCE_EXHAUSTED"
  }
}

POST /smarthome/update 400 7344.313 ms - 162
{
  "error": {
    "code": 404,
    "message": "Requested entity was not found.",
    "status": "NOT_FOUND"
  }
}
@Fleker
Copy link
Contributor

Fleker commented Jan 13, 2020

Have you linked your account to the Google Assistant?

@antonio-fiol
Copy link
Author

I didn't even get to that point. I got stuck on steps 1-2 here:
Setup sample service
[...]

  1. Open the web portal URL.
  2. Configure the virtual devices shown as you please. Click the cloud icon shown above at least one of them to enable it for cloud control.

I'm trying to configure the virtual devices, but as soon as I open the web portal URL, that appears on the log.

I didn't even get to "Start Testing" or "Set up Account linking".

@Fleker
Copy link
Contributor

Fleker commented Jan 13, 2020

You will see a 404 error before you do account linking, as it will try to call HomeGraph APIs, which will fail.

The error is benign.

@marmiky
Copy link

marmiky commented May 30, 2020

Same problem for me.
At last i found my test app on Google Home app!
Thank you so much for solution!!!!

@proppy
Copy link
Contributor

proppy commented Jan 21, 2021

Do you still have issue deploying the sample?

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

4 participants