You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the refresh token support isn't working as expected. Once you get the exporter up and running with --credentials and --refresh-token, it scrapes Nest API endpoints as expected, but then stops working after two hours returning:
2023/08/05 09:47:24 unable to get devices: googleapi: Error 401: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
More details:
Reason: authError, Message: Invalid Credentials
My understanding is that tools should use the refresh token to refresh access, but I'm no expert in OATH2 so maybe I'm missing something? I'm running the exporter with:
It looks like the refresh token support isn't working as expected. Once you get the exporter up and running with --credentials and --refresh-token, it scrapes Nest API endpoints as expected, but then stops working after two hours returning:
2023/08/05 09:47:24 unable to get devices: googleapi: Error 401: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
More details:
Reason: authError, Message: Invalid Credentials
My understanding is that tools should use the refresh token to refresh access, but I'm no expert in OATH2 so maybe I'm missing something? I'm running the exporter with:
./smartdevicemanagement_exporter --listen-address :9788 --project-id <red_guid> --credentials ./client_secret.json --refresh-token ./refresh_token.json
Thanks!
The text was updated successfully, but these errors were encountered: