01-08-2023 07:52 PM - edited 01-08-2023 11:43 PM
Hi, I did the smart home washer codelabs. When I try to link my account to my test service, I get the error: 'Could not reach [test] my smart home. Please try again later.
I checked the error logs, it says "SYNC: Request ID 12685237494986108439 failed with code: INVALID_AUTH_TOKEN"
Notes:
I've triple checked my fulfilment URL and Oauth endpoint URLs.
I've done the same codelabs a few times using the same project, adding edits to the index.js each time. This was a fresh project I did with no edits.
Answered! Go to the Recommended Answer.
01-16-2023 07:09 PM
01-16-2023 07:09 PM
01-17-2023 10:21 PM
I did the first point, didn't work.
In the end I decided to just setup my own Oauth code instead of using fakeauth and faketoken. I will still present my logs. Thanks a lot for help though!
04-17-2023 05:36 AM
I also am experiencing this exact same issue (with this codelab). Could you tell me, did you have to publish to a production app before you could utilize the oauth implementation you used to replace fakeauth/faketoken?
Thank you!
04-17-2023 08:28 PM
Hi, no I did not need to publish the production app. I just replaced the fakeauth/faketoken with webhooks that does the proper OAuth2.0 flow. It all works now and I'm still in testing.
Hope that helps!
04-19-2023 07:12 AM
Thanks for responding - good luck! Oh and the irony...