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 194 forks source link

conv.user.storage not persisting data in "VERIFIED" users #358

Closed wuelcas closed 5 years ago

wuelcas commented 5 years ago

Hi everyone,

Is anyone having recent problems with conv.user.storage with persisting data between conversations? It was working just fine a few days ago or at least last week but today the data I save in storage is not persisting between conversations.

My user (and actually other users that used the action) has Web & App Activity enabled, personal results turn on and when I invoke my action the userVerificationStatus is set as VERIFIED. If I go to my Web & App Activity history I see the invocations I made to my action.

So, I'm guessing I have all the checks to be sure the data should persist but it's not, and I'm pretty sure it was working before. It persists in the same session but after I leave the action and come back the conv.user.storage is an empty object. Anyone having an issue like that? or maybe I'm missing something?

Fleker commented 5 years ago

We're currently investigating potential instances where user storage may not be provided.

MkFoster commented 5 years ago

I am having issues as well. I am using the Google Assistant app on iOS to test. The incoming request says the user is VERIFIED but storage is an empty object even though I verified I set it in the last session.

{ "raw": { "locale": "en-US", "lastSeen": "2019-09-27T15:10:20Z", "userVerificationStatus": "VERIFIED" }, "storage": {}, "locale": "en-US", "verification": "VERIFIED", "permissions": [], "last": { "seen": "2019-09-27T15:10:20.000Z" }, "name": {}, "entitlements": [], "access": {}, "profile": {} }

wuelcas commented 5 years ago

Hey everyone, looks like the issue is fixed. The data in conv.user.storage it's being persisted in my actions. I guess this was not an issue on this library, but behind the scenes, on the Google actions platform