actions-on-google / actions-on-google-nodejs

Node.js client library for Actions on Google
https://actions-on-google.github.io/actions-on-google-nodejs
Apache License 2.0
900 stars 197 forks source link

onDisconnect bug #429

Open joanthethings opened 2 years ago

joanthethings commented 2 years ago

Hello community and developers!

I have been dealing with this many weeks and I finally found what is causing this. When I do an unlink (onDisconnect), sometimes 1/5 of the times, the home app does not refresh and so it lets you unlink again when it is already unlinked.

The problem comes here, when users unlink twice and they do a link (onSync) again, they get all their devices correctly but they get an error message saying they did not find devices due to an error.

This error message says: No devices were found in your account. You may need to set up these devices with first. If you have already set up devices, they may not be available due to temporary error. Please wait few minutes and try again.

This makes no sense since sometimes I get this error and sometimes not, and I do always recieve devices and return it as response to OnSync

Thanks!