Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 4.18 KB

possible-errors.md

File metadata and controls

64 lines (40 loc) · 4.18 KB

This is an incomplete list of possible errors and ideas on how to fix them:

Log message: no user logged

  • Not logged in with the app (or more technically, this module can't find access and refresh tokens).
  • Can occur when the auth storage file becomes corrupted. Stop Node-RED, delete the file(s) named google-smarthome-auth-*.json from Node-RED's user directory (where your settings.js, flows.json etc. are located). Then restart Node-RED and relink your account by following the section "Setup Account linking" in the Readme.
  • Maybe you really are not logged in. Link your account by following the section "Setup Account linking" in the Readme.

Log message: redirect_uri ... invalid


Log Message: HttpActions:requestSync(): error; {"error":{"code":403,"message":"The caller does not have permission","status":"PERMISSION_DENIED"}}`

  • Wait. Sometimes this error fixes itself after a few minutes.
  • If waiting does not help, unlink and relink your account in Google Home app by following the section "Setup Account linking" in the Readme.

Log message: clientId does not match!

  • Client ID defined in config and in Google Actions Console do not match.
  • Client ID and secret with special characters (spaces, plus signs, etc.) can lead to problems. Try with alphanumeric (a-z, A-Z, 0-9) ID and secret.

Log message: Error on loading auth storage: Error: EACCES: permission denied, open '...'

  • Auth storage file (`google-smarthome-auth-*.json in Node-Red's userDir) has invalid file permissions. The file must be readable and writable by the user as which Node-RED is running.

Message "INVALID_ARGUMENT" or "Request contains an invalid argument" in Node-RED's debug panel

  • Happens when this module reports an invalid state value to Google. For example an out-of-range value (window opened to 120% where only 0-100% allowed) or an invalid field name.
  • Fully expand the message in the debug panel. Check for obvious mistakes in the "data" object in the message (like an "open" parameter with value 120).
  • If you don't see anything obvious, please create an issue on GitHub. Include the error message from Node-Red's debug panel, either as JSON or as screenshot with all branches expanded (so that we see the complete "data" object included in the message).

Log message: HttpActions:requestSync(): error; {"error":{"code":403,"message":"The caller does not have permission","status":"PERMISSION_DENIED"}}

  • Reasons for this error are currently unknown [Help wanted].

Login page in the Google Home app is empty


Error "Missing SmartHome" on a device node in Node-Red's editor

  • The device has an invalid config selected. Check that all devices nodes and the management node have the same configuration selected.

Log message: "skipped requested sync, account is not linked. (Re-)link your account in the app"

This can happen if you move the smarthome node to a Node-RED system on a different host. Your devices will no longer appear in your Google Home app anymore.

Repeat the steps from the setup account linking tutorial.

Follow the next steps from the tutorial. If everything goes well, you will see a list of your devices:

image

After pressing "Done", your devices should reappear in the Google Home app.