googlesamples / assistant-sdk-python

Samples and bindings for the Google Assistant API
http://developer.google.com/assistant/sdk
Apache License 2.0
916 stars 320 forks source link

Error disable client on registring device #317

Open Eloque opened 5 years ago

Eloque commented 5 years ago

When I try to authorize my device with the credentials gotten from registering, I get this error when trying to activate;

Error: disabled_client
A native application: project-672827294112
You can email the developer of this application at: unconfiguredapp@google.com

If I use the oAuth credentials from the Google Cloud page associated with it, I can get past it but then get as expected an error later when trying push-to-talk;

WARNING:root:Device config not found: [Errno 2] No such file or directory: '/root/.config/googlesamples-assistant/device_config.json'
INFO:root:Registering device
ERROR:root:Failed to register device: {
  "error": {
    "code": 400,
    "message": "Could not create the device instance. Project_id from side channel and project_id from url do not match.",
    "status": "INVALID_ARGUMENT"
  }
}
Eloque commented 5 years ago

I could get past by creating a new json in the cloud console. But, using the one from device registration still doesn't work.

Fleker commented 5 years ago

You need to first use the google-oauthlib-tool along with the client_secret_xxx.json to generate a valid credentials.json file.