Skip to content

BotFrameworkAdapter.process_activity_with_identity calls serialize() on dict #1672

Closed
@jooste

Description

@jooste

Version

4.13.0

Describe the bug

When running, e.g., the fetch task example, an exception is raised when on_teams_messaging_extension_fetch_task is called. The problem is that in bot_framework_adapter.py on line 515, serialize() is called on invoke_response.value.body, which is a python dict.

To Reproduce

Steps to reproduce the behavior:

  1. run the above-mentioned example and add to teams
  2. Trigger bot's 'create card' message extension
  3. A dialog is shown with an error, and an exception is raised in the bot code.

Expected behavior

Expected behavior is that the 'Create Card' example dialog is shown instead of an error. A fix to this error could for instance be to change line 515 in bot_framework_adapter.py to:

return InvokeResponse(
                status=invoke_response.value.status,
                body=invoke_response.value.body   # line 515

Metadata

Metadata

Assignees

Labels

Area: SDKGeneral SDK issues that don't clearly map to other areas (e.g.: helper methods)Area: TeamsThe issue is related to Teams supportBot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.P0Must Fix. Release-blockerbugIndicates an unexpected problem or an unintended behavior.customer-replied-toIndicates that the team has replied to the issue reported by the customer. Do not delete.customer-reportedIssue is created by anyone that is not a collaborator in the repository.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions