Skip to content

[Fix #8345]: Async Handling, Message Parsing & Domain Validation #8811

@PeterGuy326

Description

@PeterGuy326

This issue addresses #8345 three critical updates to the DingTalk integration:
Async Stream Handling: Corrected DingTalkStreamClient.start() to be awaited directly (removed asyncio.to_thread) and made the process method fully asynchronous to prevent blocking the event loop.
Robust Message Parsing: Updated field extraction to prioritize data from the data payload (handling both dict and JSON string formats) for msgId, senderId, and sessionWebhook.
Domain Validation: Updated the webhook regex to support both api.dingtalk.com and oapi.dingtalk.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions