Skip to content

fix: Prevent double Base64 encoding on retries - #69

Merged
TriPSs merged 1 commit into
mainfrom
templating
Nov 14, 2026
Merged

TriPSs merged 1 commit into
mainfrom
templating

Conversation

@TriPSs

@TriPSs TriPSs commented Nov 14, 2026

Copy link
Copy Markdown
Member

A 429 retry encoded HTML fields a second time, sending Base64 text instead of the original HTML after decoding. Retries now skip encoding and reuse the already encoded body, preserving the existing in-place mutation behavior without cloning the request body. Encoding also tolerates null page and PDF options.

Adds regression coverage for identical retry payloads, in-place encoding, retry exhaustion, and non-retryable errors across PDF, screenshot, and template operations.

Validation performed before committing: all 57 tests passed, TypeScript checking passed, and ESLint passed for the changed files.

@TriPSs
TriPSs merged commit 608caf8 into main Nov 14, 2026
4 checks passed
@TriPSs
TriPSs deleted the templating branch November 14, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant