Nest Integration Errors

Thanks in advance for any insight.

I’ve followed the instructions for the Nest integration including all the Google setup steps.

Once the Google side steps are done (including the $5 fee)I add the integration in HA. All going well and I get to the final screen to link to my Home Assistant instance URL, it says loading next step for a while and the Error: Invalid Flow Specified.

Looking in my log I see two errors:

Error resolving OAuth token: 400, message=‘Bad Request’, url=URL(‘https://www.googleapis.com/oauth2/v4/token’)

Token request for nest_myclientid*_apps_googleusercontent_com failed (invalid_grant): Bad Request

I can’t see any specific causes for this as part of setup but have tried a range of things to no avail

  • disabling IPV6
  • trying to add the integration when in test and prod
  • creating new client ID/Secret (and updating this in the device project)
  • manually deleting application credentials
  • many reboots and restarts

This is my initial HA installation and at a bit of a loss! From the errors it looks to be a Google side issue, but I believe all steps have been done…?

After waiting for a day I am now getting the black error box message? But nothing in the log.

I’ve seen this been referred to as an IPV6 issue - but this is disabled on my router and server (running docker).

Could reverse proxy cause any issues?

UPDATE: After a while I’ve ascertained this is a timeout issue related to my reverse proxy (originally set at 60s) - needed to increase this to above 2 minutes to give Google time to respond!