Skip to content

Replay the original response for idempotent retries #484

Description

@BorisLord

After a client timeout, retrying POST /v1/send with the same payload and Idempotency-Key returns 409 IDEMPOTENCY_KEY_REUSED.

This prevents duplicate sends, but the client cannot determine whether the original request succeeded, especially when originalStatusCode is null.

Could Plunk store and replay the original response, including the email ID, as Stripe and Resend do? While the original request is still processing, a distinct “request in progress” response would also allow clients to retry safely later.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions