You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adaptive Card Attachments Result in Error For ConversationOperations send_to_conversation #312
When sending an activity that includes an attachment, the service may return HTTP 202 Accepted with no response body.
The SDK still executes await response.json(), which causes a failure because the body is empty or the mimetype is not JSON. This does not prevent the message from being sent, and we are receiving the message in the expected channel.
We have discovered this when updating a legacy application to use the new SDK. We are using Adaptive Cards for several purposes, and we had previously used the Connector Client to make proactive message calls to users. This appears to be the equivalent code, and should support this feature.
The exact error for this is:
class 'aiohttp.client_exceptions.ClientResponseError'>
Attempt to decode JSON with unexpected mimetype:
We are using the public service url: https://smba.trafficmanager.net/teams/. As suggested in this document.
Steps to Reproduce
Create a message activity with any attachment (Adaptive Card, image, etc.).
Call:
Activity
rodrigobr-msft commentedon Feb 9, 2026
For now, we'll go for parity with the .NET SDK and return an empty ResourceResponse in these cases. Thank you for filing this issue.