Giter Site home page Giter Site logo

audiobooks's People

Contributors

panac avatar

Watchers

 avatar  avatar

audiobooks's Issues

loss user data persistence between sessions (storage cross-session)

Doc: https://developers.google.com/assistant/conversational/storage-user

I noticed that the user storage has a very limited size.
According to my observation if the storage size exceeds the limit, the new data state is not persisted and the previous data state is kept.

Now : after some optimisation : like string size reduction

I remarks that the user data storage is wiped after each end of session. It's not kept.

User data storage :

>  {                                                                                                      
>    p_i: 0,                                                                                              
>    player: {                                                                                            
>      'du_contrat_social_rousseau.json': { t: 36, i: 0, d: 1632475912941 }                               
>    },                                                                                                   
>    p_t: 36,                                                                                             
>    bearerToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwic3ViIjoxLCJpYXQiOjE2Mz
I0NzM1MTcsImV4cCI6MTYzMjQ3MzU3N30.AtJ09OuT3IDOTsgT2RqLgnv1hKSwK4j4RRZOgxuoJXo',                           
>    p_n: 'du_contrat_social_rousseau.json'                                                               
>  }       

User data storage provided to the next session :

>  {                                                                                                      
>    bearerToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwic3ViIjoxLCJpYXQiOjE2Mz
I0NzM1MTcsImV4cCI6MTYzMjQ3MzU3N30.AtJ09OuT3IDOTsgT2RqLgnv1hKSwK4j4RRZOgxuoJXo'                            
>  }  

LOG : "Did not find any handling for intent event 'actions.intent.MEDIA_STATUS_PAUSED' on scene 'select_pub_after_selection'

When I pause the player : the request to the webhook didn't occurs.
'une erreur s'est produite'

from log google :
https://console.cloud.google.com/logs/query;timeRange=PT1H;cursorTimestamp=2021-09-24T09:16:33.022777Z?project=valentin-4&query=%20&authuser=1

There is a critical error :


{
  "insertId": "1de94lkgdd83pwf",
  "jsonPayload": {
    "status": {
      "message": "Did not find any handling for intent event 'actions.intent.MEDIA_STATUS_PAUSED' on scene 'select_pub_after_selection'",
      "code": 13
    },
    "timestamp": "2021-09-24T09:16:33.022777Z",
    "endConversation": {}
  },
  "resource": {
    "type": "assistant_action",
    "labels": {
      "action_id": "55bcdc71-5e53-4366-b84b-b9f6ec67fed5/40",
      "project_id": "valentin-4",
      "version_id": ""
    }
  },
  "timestamp": "2021-09-24T09:16:33.022777Z",
  "severity": "CRITICAL",
  "labels": {
    "channel": "preview"
  },
  "logName": "projects/valentin-4/logs/actions.googleapis.com%2Factions",
  "trace": "projects/valentin-4/traces/ABwppHFZN2XYLbv45eWhBcMIuM6cjCmZrUrHfV8RcNZN_lNagCMonQaqJeNr8Nec2e8VPcm3OfC20w",
  "receiveTimestamp": "2021-09-24T09:16:33.047169149Z"
}

https://console.cloud.google.com/logs/query;cursorTimestamp=2021-09-24T09:16:33.022777Z;query=timestamp%3D%222021-09-24T09:16:33.022777Z%22%0AinsertId%3D%221de94lkgdd83pwf%22;timeRange=PT1H?project=valentin-4

however :

image

the player scene is launched because the media-player start the audiobook..
but the scene is stall to select_pub_after_selection

the workaround is to force the next scene to the code
conv.scene.next.name = "player";

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.