botbuilder-js
botbuilder-js copied to clipboard
deleteConversationMember is returning 405 error
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Versions
What package version of the SDK are you using: 4.14.1 What nodejs version are you using: 14.20 What os are you using: macos
Describe the bug
when calling deleteConversationMember, a 405 error is returned The requested resource does not support http method 'DELETE'
... the endpoint should exist per MS documentation https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-api-reference?view=azure-bot-service-4.0#delete-conversation-member which is the same path 'v3/conversations/{conversationId}/members/{memberId}'
returned in the error request.operationSpec
To Reproduce
Steps to reproduce the behavior:
- Setup teams SDK to create a new BotFrameworkAdapter instance and call
botFrameworkAdapter.deleteConversationMember(context, memberId)
in response to an event
Expected behavior
Expect member to be removed from conversation without an error response
Screenshots

Additional context
Add any other context about the problem here.
Thank you @krosenk729.
I am investigating. Out of curiosity have you tested this in any other language? Curious to know if it works/fails in C#/dotnet.
@dmvtech I have only tried with node/js
Thank you @krosenk729. I am continuing to investigate and hope to have some information soon. Thank you for your patience.
thanks for the update @dmvtech I appreciate you keeping me in the loop
hey @dmvtech just checking in again... my team is blocked on some feature work/decisions based on the fix for this. how is it going?
Hi @krosenk729
Apologies for the delay. We are still investigating and hope to have some updates for you soon.
@JuanAr I was able to confirm this behavior. Assigning to you for resolution.
Hi everyone, We reproduced the issue with a Teams bot, and we think the error is due to the Teams channel not supporting this operation. The request is correctly sent to the Connector service and it returns the 405 error code. As the documentation states, not all channels support all endpoints. We also found some similar issues: https://stackoverflow.com/questions/73331696/how-can-skype-bot-delete-conversation-member https://github.com/MicrosoftDocs/bot-docs/issues/1357#issuecomment-949976150
@ceciliaavila is it a channel-specific issue? so some channels will not give a 405 error but some channels will?
@krosenk729 that's correct. A method may be supported by some channels and not by others.
@ceciliaavila how do we update channels to support this method?
Hi @krosenk729, just to clarify, by channel I mean the MSTeams channel. This is a feature that is not enabled for bots in MSTeams.
Closing this due to inactivity