Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default bot implementation throws an error when receiving an adaptive card chat message #246

Open
wictorwilen opened this issue Oct 8, 2021 · 1 comment · Fixed by #257
Assignees
Labels

Comments

@wictorwilen
Copy link
Member

Description

The default bot implementation throws an error, see below, when an adaptive card (non text) message is sent to it.

Steps to reproduce

Scaffold a new project with a bot and a messaging extension.
Run it (gulp serve) and use the message extension in the bot chat and post an adaptive card to the chat

Expected results

At least no errors in the console

Actual results

The following error is shown:

POST /api/messages 200 775 - 2.320 ms
  msteams [onTurnError]: TypeError: Cannot read property 'toLowerCase' of undefined +56s
POST /api/messages 200 - - 5.425 ms
(node:14462) UnhandledPromiseRejectionWarning: TypeError: Cannot perform 'set' on a proxy that has been revoked
    at Proxy.<anonymous> (/home/wictor/code/test/yoteams-test/node_modules/botbuilder-core/lib/turnContext.js:387:36)
    at Generator.next (<anonymous>)
    at fulfilled (/home/wictor/code/test/yoteams-test/node_modules/botbuilder-core/lib/turnContext.js:9:58)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
(node:14462) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)

Project you experience issues with

generator-teams

generator version

3.1.1

build tools version

1.3.0

nodejs version

14.17.6

npm version

6.14.15

Operating system (environment)

Linux

Additional Info

No response

@stephanbisser
Copy link
Member

@wictorwilen did you try that with 3.5.0.?

@stephanbisser stephanbisser self-assigned this Jun 2, 2022
@appieschot appieschot added the Hacktoberfest https://hacktoberfest.digitalocean.com/ label Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants