[Bug] Headers should always run through external storage

Open
#1,395 0 comments 0 reactions 1 assignee View on GitHub

@jmaeagle99 is already working on this.

Since Jul 6, 2026.

Assessment

This issue has not been assessed yet.

Description

bug
What are you really trying to do?

Headers, just like any other payload, should always run through external storage.

Describe the bug

See https://github.com/temporalio/sdk-python/blob/main/temporalio/client.py#L9186. The call to _transform_outbound_payload (which encodes, stores externally, and validates size) is conditioned on whether headers should be encoded or not. The encode_headers parameter should only affect the code encoding phase, not the other phases of transforming payloads.

Dominant language
Python
Stars
1.2k
Forks
241
Avg merge
3d 2h
Merged PRs (30d)
49

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from temporalio/sdk-python

All issues in temporalio/sdk-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.