Just noticed that my Kafka Connect sink is failing to remove participants from active conferences when triggered by EventBridge events.
409 Conflict: The requested resource is not available
I’m using the Python SDK to call patch_conversation_participant. The payload looks correct based on the spec: {'action': 'disconnect'}. I’m passing the conversationId and the specific participantId extracted from the webhook payload. My connector handles exactly-once semantics for the upstream Kafka topic, so I know the event is valid and the participant is currently in the ‘connected’ state. I’m checking the conversation_id against the EventBridge conversationId field. The SDK logs show the request hitting /api/v2/conv/conversations/{convId}/participants/{partId}. I’ve verified the OAuth token has conv:participant:edit scope. I’m running this in a tight loop to handle bursts, but I’m not hitting rate limits. The error persists even with a 500ms retry delay.
Is there a specific race condition with the disconnect action that requires a different HTTP verb or additional headers in the JSON body to force the removal?