mikejac/node-red-contrib-google-smarthome

redirect_uri error

Closed this issue · 5 comments

similar to #286 , I'm getting the same error. I've checked my JWT files, recreated the google action, created new credentials, etc. The service run successfully, but oauth is causing issues.

partial jwt config:

{
  "type": "service_account",
  "project_id": "nodered-372211",
  "private_key_id": "c3ca0a0120

image

The URL it's trying to access:

redirect_uri https://oauth-redirect.googleusercontent.com/r/nr-gsmarthome-9705 invalid

Got the first part working, but now unable to get a valid check.

Using the same client id/secret username/password combos set up in the docs

image

Oddly, the above works when I go to the local http uri for /check, but not through my external domain. I'm port-forwarding port 3001 to my system via an https connection using haproxy in opnsense

turns out I had to disable ssl offloading and put the certs in the config instead. working now

Re-opening.

Can't log in from Google Home app

{
  "insertId": "1os3ihbg17choan",
  "jsonPayload": {
    "syncLog": {
      "syncs": [
        {
          "requestId": "9439016925581681183",
          "status": "BACKEND_FAILURE_URL_ERROR",
          "httpLatencyMsec": "202"
        }
      ]
    }
  },
  "resource": {
    "type": "assistant_action_project",
    "labels": {
      "project_id": "nr-gsmarthome-9705"
    }
  },
  "timestamp": "2022-12-21T12:26:36.506521190Z",
  "severity": "ERROR",
  "logName": "projects/nr-gsmarthome-9705/logs/assistant_smarthome%2Fassistant_smarthome_logs",
  "receiveTimestamp": "2022-12-21T12:26:36.506521190Z"
}

Not sure what the backend URL issue is. I'm not setting any paths

Fixed. Typo in the actions url