BotServer
BotServer copied to clipboard
Comando Send file
Describe the bug A clear and concise description of what the bug is.
Send file não executado quando dentro de uma condição no gbdialog. https://dev.azure.com/pragmatismo-io/GeneralBotsOnline/_workitems/edit/1096
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
Verificar latência de quase 1 minuto para envio do anexo, no send file.
O send file quando executado dentro de um start dialog se apresenta como se estivesse pela web.
@rodrigorodriguez Não está sendo possível a realização de testes. Já na chamada do Bot o spell checker separa as palavras.
2021-10-01T14:23:21.236Z [GeneralBots] [32minfo[39m: User>: text:maispodologiabot (type: message, name: undefined, channelId: webchat, value: undefined)
2021-10-01T14:23:21.407Z [GeneralBots] [32minfo[39m: Spelling corrected (processMessageActivity): mais podologia bot
2021-10-01T14:23:21.532Z [GeneralBots] [32minfo[39m: Translated text (processMessageActivity): mais podologia bot.
2021-10-01T14:23:21.548Z [GeneralBots] [32minfo[39m: Final text ready for NLP/Search/.gbapp: mais podologia bot.
2021-10-01T14:23:21.595Z [GeneralBots] [32minfo[39m: Sending event stop:undefined to client...
2021-10-01T14:23:22.219Z [GeneralBots] [32minfo[39m: SEARCH WILL NOT be used as answerId 229908 was not found in database,
returnedScore: 0.7688495 < required (searchScore): 0.43
2021-10-01T14:23:22.312Z [GeneralBots] [32minfo[39m: NLP called: t, entities: undefined, score: 0.28620112 > required (nlpScore): 0.2
2021-10-01T14:23:22.500Z [GeneralBots][32minfo[39m: Translated text(sendText): Please wait while I locate someone to see you..
2021-10-01T14:23:24.481Z [GeneralBots] [32minfo[39m: Message [Please wait while I locate someone to see you.] sent to 5521979047667: {"sent":true,"message":"Sent to [email protected]","id":"[email protected]_3EB0238BB032533E018F","queueNumber":345}
2021-10-01T14:23:24.512Z [GeneralBots] [31merror[39m: ERROR: Cannot read property 'split' of undefined TypeError: Cannot read property 'split' of undefinedat SecService.assignHumanAgent (D:\home\site\wwwroot\dist\packages\security.gbapp\services\SecService.js:155:46)at Array.
@rodrigorodriguez pelo WhatsApp se comportando como se estivesse na web.
2021-10-01T14:52:17.461Z [GeneralBots] [32minfo[39m: GBWhatsapp: RCV 5521979047667(PH): /start) 2021-10-01T14:52:17.492Z [GeneralBots] [32minfo[39m: GBWhatsapp: Starting new conversation on Bot. 2021-10-01T14:52:17.617Z [GeneralBots] [32minfo[39m: GBWhatsapp: Starting message polling(5521979047667, 79mLgWzTCOCIMgeDQRQqZS-o). 2021-10-01T14:52:17.632Z [GeneralBots] [32minfo[39m: Sending event loadInstance:{} to client... 2021-10-01T14:52:17.726Z [GeneralBots] [32minfo[39m: Sending event play:{"playerType":"bullet","data":[]} to client... 2021-10-01T14:52:17.851Z [GeneralBots] [32minfo[39m: User>: text:undefined (type: conversationUpdate, name: undefined, channelId: webchat, value: undefined) 2021-10-01T14:52:17.851Z [GeneralBots] [32minfo[39m: Bot added to conversation, starting chat... 2021-10-01T14:52:17.870Z [GeneralBots] [32minfo[39m: Auto start (web) dialog is now being called: Start for 304... 2021-10-01T14:52:17.898Z [GeneralBots] [32minfo[39m: Translated text(sendText): Olá! Bem vinda(o)!!. 2021-10-01T14:52:17.932Z [GeneralBots] [32minfo[39m: Sending event loadInstance:{} to client... 2021-10-01T14:52:18.007Z [GeneralBots] [32minfo[39m: BASIC: Sending the contents of novidades.md markdown to mobile null. 2021-10-01T14:52:18.040Z [GeneralBots] [32minfo[39m: Sending event play:{"playerType":"bullet","data":[]} to client... 2021-10-01T14:52:18.054Z [GeneralBots] [32minfo[39m: Translated text(playMarkdown): Olá! Tudo bem? Eu sou o Bot da MaisPodologia e estou ao seu dispor 24 horas por dia. Por enquanto você pode me perguntar coisas do tipo: 👉 Unidades 👉 Tratamentos 👉 Agendamentos . 2021-10-01T14:52:18.088Z [GeneralBots] [32minfo[39m: Translated text(sendText): Vou te responder na tela para melhor visualização.... 2021-10-01T14:52:18.195Z [GeneralBots] [32minfo[39m: Sending event play:{"playerType":"markdown","data":{"content":"
<img src="https://prod-generalbots-server.azurewebsites.net/kb/MaisPodologiaBot.gbai/MaisPodologiaBot.gbkb/images/maispodologo.png" alt="MaisPodologia">
\nOlá! Tudo bem?
\nEu sou o Bot da MaisPodologia e estou ao seu dispor 24 horas por dia.
\nPor enquanto você pode me perguntar coisas do tipo:
\n👉 Unidades\n\n👉 Tratamentos\n\n👉 Agendamentos\n
\n","answer":"\r\n\r\n\r\nOlá! Tudo bem?\r\n\r\nEu sou o Bot da MaisPodologia e estou ao seu dispor 24 horas por dia.\r\n\r\nPor enquanto você pode me perguntar coisas do tipo:\r\n\r\n 👉 Unidades\r\n\r\n 👉 Tratamentos\r\n\r\n 👉 Agendamentos\r\n \r\n","prevId":0,"nextId":0}} to client...
2021-10-01T14:52:18.242Z [GeneralBots] [32minfo[39m: User>: text:undefined (type: conversationUpdate, name: undefined, channelId: webchat, value: undefined)
@rodrigorodriguez o problema continua.
2021-10-09T17:04:04.314Z [GeneralBots] [32minfo[39m: Calling /start for Auto start : Start for MaisPodologiaBot... 2021-10-09T17:04:04.345Z [GeneralBots] [32minfo[39m: GBWhatsapp: RCV 5521979047667(PH): /start) 2021-10-09T17:04:04.376Z [GeneralBots] [32minfo[39m: GBWhatsapp: Starting new conversation on Bot. 2021-10-09T17:04:04.550Z [GeneralBots] [32minfo[39m: GBWhatsapp: Starting message polling(5521979047667, 9uC0eIkx7s55EggitaB07I-o). 2021-10-09T17:04:04.634Z [GeneralBots] [32minfo[39m: Sending event loadInstance:{} to client... 2021-10-09T17:04:04.773Z [GeneralBots] [32minfo[39m: Sending event loadInstance:{} to client... 2021-10-09T17:04:05.035Z [GeneralBots] [32minfo[39m: Sending event play:{"playerType":"bullet","data":[]} to client... 2021-10-09T17:04:05.079Z [GeneralBots] [32minfo[39m: Sending event play:{"playerType":"bullet","data":[]} to client... 2021-10-09T17:04:05.157Z [GeneralBots] [32minfo[39m: User>: text:undefined (type: conversationUpdate, name: undefined, channelId: webchat, value: undefined) 2021-10-09T17:04:05.188Z [GeneralBots] [32minfo[39m: Bot added to conversation, starting chat... 2021-10-09T17:04:05.204Z [GeneralBots] [32minfo[39m: Auto start (web) dialog is now being called: Start for 304... 2021-10-09T17:04:05.219Z [GeneralBots] [32minfo[39m: Translated text(sendText): Olá! Bem vinda(o)!!. 2021-10-09T17:04:05.282Z [GeneralBots] [32minfo[39m: User>: text:undefined (type: conversationUpdate, name: undefined, channelId: webchat, value: undefined) 2021-10-09T17:04:05.298Z [GeneralBots] [32minfo[39m: Person added to conversation: PH 2021-10-09T17:04:05.360Z [GeneralBots] [32minfo[39m: User>: text:/start (type: message, name: undefined, channelId: webchat, value: undefined) 2021-10-09T17:04:05.376Z [GeneralBots] [32minfo[39m: BASIC: Sending the contents of novidades.md markdown to mobile null. 2021-10-09T17:04:05.391Z [GeneralBots] [32minfo[39m: Translated text(playMarkdown): Olá! Tudo bem? Eu sou o Bot da MaisPodologia e estou ao seu dispor 24 horas por dia. Por enquanto você pode me perguntar coisas do tipo: 👉 Unidades 👉 Tratamentos 👉 Agendamentos . 2021-10-09T17:04:05.407Z [GeneralBots] [32minfo[39m: Sending event play:{"playerType":"markdown","data":{"content":"
<img src="https://prod-generalbots-server.azurewebsites.net/kb/MaisPodologiaBot.gbai/MaisPodologiaBot.gbkb/images/maispodologo.png" alt="MaisPodologia">
\nOlá! Tudo bem?
\nEu sou o Bot da MaisPodologia e estou ao seu dispor 24 horas por dia.
\nPor enquanto você pode me perguntar coisas do tipo:
\n👉 Unidades\n\n👉 Tratamentos\n\n👉 Agendamentos\n
\n","answer":"\r\n\r\n\r\nOlá! Tudo bem?\r\n\r\nEu sou o Bot da MaisPodologia e estou ao seu dispor 24 horas por dia.\r\n\r\nPor enquanto você pode me perguntar coisas do tipo:\r\n\r\n 👉 Unidades\r\n\r\n 👉 Tratamentos\r\n\r\n 👉 Agendamentos\r\n \r\n","prevId":0,"nextId":0}} to client...
2021-10-09T17:04:09.614Z [GeneralBots] [32minfo[39m: GBWhatsapp: SND 5521979047667(PH): Olá! Bem vinda(o)!!
2021-10-09T17:04:10.547Z [GeneralBots] [32minfo[39m: Message [Olá! Bem vinda(o)!!] sent to 5521979047667: {"sent":true,"message":"Sent to [email protected]","id":"[email protected]_3EB08B1517255529D401","queueNumber":441}
@PH-Nascimento ainda continua? Verificar com o provedor de serviços, não há retardador no código.
OK! Liberado!