FilipDem / Domoticz-NEST-plugin

NEST Plugin for Domoticz using the Google credentials.
13 stars 4 forks source link

Error: "Missing required parameter: scope" #46

Open TokTias opened 4 months ago

TokTias commented 4 months ago

Hi ! I keep getting errror "Nest: API request failed (status 400)" in the domoticz log and I recreated the first call done in nest.py using curl and I see this get :

HTTP/2 400
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
cache-control: no-cache, no-store, max-age=0, must-revalidate
pragma: no-cache
expires: Mon, 01 Jan 1990 00:00:00 GMT
date: Thu, 22 Feb 2024 01:42:51 GMT
server: ESF
x-xss-protection: 0
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
accept-ranges: none
vary: Accept-Encoding

{
  "error" : "invalid_request",
  "error_description" : "Missing required parameter: scope"
}

So "scope" is missing somewhere, can it be fixed ?

Cheers ! /T

FilipDem commented 4 months ago

Unfortunately as I don't have a NEST Thermostat anymore myself (I moved to a new house), I am not able to debug. I would recommend to use the nest.py outside Domoticz to test/debug.