question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

conv.data (session data) rots on long sessions of actions.intent.MEDIA_STATUS

See original GitHub issue

I occasionally get empty object in conv.data (session data) for actions.intent.MEDIA_STATUS intent.

This bug isn’t easy to reproduce but in long sessions, about an hour or more of media responses, I get empty conv.data (session data), which we use heavily and it shouldn’t be empty. Because we store playlist there, we lost context with empty session data.

It seems like conv.data rots maybe because actions.intent.MEDIA_STATUS intents there could be few minutes without any interaction with user.

What is interesting conversation is still active:

{
  //...
  request: {
  conversation: { 
    conversationId: 'ABwpp....',
    type: 'ACTIVE',
    conversationToken: '["_actions_on_google"]' 
  }
  //...
}

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Flekercommented, Dec 5, 2018

Yeah you’d be able to store the timestamp for a session within Firestore, then create a cloud function connected to Cloud Scheduler to clear out old entries.

1reaction
igilhamcommented, Dec 5, 2018

That’ll work. I believe you’ll need user consent to store data before that’ll pass certification though.

Also there’s conv.user.userStorage or similar for that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Saving session data for Google Actions with Dialogflow and ...
try conv.data = sessionVars;. to set the variables and access them using conv.data in other intents. data will be lost when the conversation ......
Read more >
Storing data during a session and between sessions ... - Medium
The values stored on app.data are persisted as long as the action is running, or until the conversation ends (either by error or...
Read more >
Diff - platform/frameworks/base - Google Git
String ACTION_CREATE_LIVE_FOLDER = "android.intent.action. ... +package android.hardware.camera2; /** * The rational data type used by CameraMetadata keys.
Read more >
Using a media session - Android Developers
Media sessions provide a universal way of interacting with an audio or video player. By informing Android that media is playing in an...
Read more >
Untitled
Mhz to nm conversion calculator, Pludselig sebastian tekst, Rs components spa ... Lev 21 16, Kane vs ryback 2014, Data-wise, Droge schrale mondhoeken, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found