https://discord.gg/botpress logo
LOOP ERROR
# 🤝help
m
Hey guys so it happened yesterday and now its happening again today for me it's happening in Whatsapp but people have reported this happening with other integrations as well I'm going through the logs and this is what I find 1st - ___________________________ >
Copy code
[dm]    :     Error saving state session for conversation - State: {
>   "workflows_executions": [],
>   "kb_priority": {
>     "enabled": true,
>     "searchScope": "specific",
>     "kbs": [
>       "kb-2f0a7ea639"
>     ]
>   },
>   "current_workflow": {}
> }
>   [Error, State "session" doesn't exist for conversation "conv_01HYSC722A910HPS5H460CKNP8"]    {"id":"err_20240716114415x25CA40C1","code":404,"type":"ResourceNotFound","message":"State \"session\" doesn't exist for conversation \"conv_01HYSC722A910HPS5H460CKNP8\""}
> Jul 16, 2024 at 7:44:15 AM
> error in handler es [Error]: State "session" doesn't exist for conversation "conv_01HYSC722A910HPS5H460CKNP8"
>     at Xg (/var/task/customer_code.js:14:13471)
>     at ys (/var/task/customer_code.js:14:13290)
>     at f (/var/task/customer_code.js:14:63069)
>     at /var/task/customer_code.js:14:40575
>     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
>     at async Promise.all (index 3)
>     at async resetStatesByKey (/var/task/customer_code.js:1982:13570)
>     at async Object.onTimeout (/var/task/customer_code.js:2362:15240)
>     at async handler (/var/task/customer_code.js:6772:848)
>     at async /var/task/index.js:20:13702 {
>   isApiError: true,
>   code: 404,
>   description: 'The requested resource does not exist.',
>   type: 'ResourceNotFound',
>   error: undefined,
>   id: 'err_20240716114415xC80BDE0D'
> }
https://cdn.discordapp.com/attachments/1262790456337502208/1262790456656531456/image.png?ex=6697e0c2&is=66968f42&hm=06d614087e810e68f8e11c301fbef196821838c1d34d69a0c2e6d0c4d978e178& https://cdn.discordapp.com/attachments/1262790456337502208/1262790456924835880/image.png?ex=6697e0c2&is=66968f42&hm=8a4b260ae069fe22047b16c7340e897f371b1946b38eb083af9aea578a9248c2&
____________________ 2nd
Copy code
Jul 16, 2024 at 10:36:08 AM
[0f8d23fec8]    [dm]    :     Conversation conv_01HYSC722A910HPS5H460CKNP8 timed out due to inactivity
Jul 16, 2024 at 10:36:09 AM
[0f8d23fec8]    [dm]    :     User is not in a active conversation, timeout flow cannot be executed
-------------- 3rd
Copy code
Error saving state session for conversation - State: {
  "history": [
    {
      "id": "9149764a-e964-4574-b57f-1f688252ccf3",
      "sender": "user",
      "date": "2024-07-16T14:32:44.355Z",
[... HISTORY]
@bumpy-butcher-41910
b
can you confirm that this isn't happening on webchat?
what timing is your timeout flow set to?
m
just happened on webchat
3 minutes
report_01J2Y25C01D2Y9P4DWVGSBETHY
b
if it happened on webchat, can you show me the webchat logs?
m
is there a way to get the logs of the conversation outside the logs tab?
it's litteraly the same thing @bumpy-butcher-41910 as described here above
:19:34 AM [a9bc3dad65] [agent-hook] [SummaryAgent] [conversation_turn_ended]: Last 15 transcript messages available --> {{conversation.SummaryAgent.transcript}} Jul 16, 2024 at 11:19:39 AM [a9bc3dad65] [agent-hook] [SummaryAgent] [conversation_turn_ended]: Summary updated based on 5 new messages --> {{conversation.SummaryAgent.summary}} Jul 16, 2024 at 11:19:39 AM FIRST ERROR : [a9bc3dad65] [dm] : Error saving state session for conversation - State: { "history": [
b
those logs don't show much - just that the summary agent is functioning
m
it;s just enormous [Error, State "session" doesn't exist for conversation "conv_01J2Y1JFHAPGWBNHT3WM1XXYGD"] {"id":"err_20240716151939x1791BF5B","code":404,"type":"ResourceNotFound","message":"State \"session\" doesn't exist for conversation \"conv_01J2Y1JFHAPGWBNHT3WM1XXYGD\""}
it's just that, in the middle it a bunch of data from my workflow but it doesnt have anything to do with that i bet