fix: omit empty headers on function createExecution - #3165
Closed
cursor[bot] wants to merge 1 commit into
Closed
Conversation
The execute wizard always sent headers: {} when no header rows were
filled. Cloud 1.9.6 rejects that empty object at validation, so console
executions failed with Invalid headers param.
Only pass headers when at least one name is set.
Related to appwrite#13237 / community threads on createExecution 400.
Co-authored-by: chiragaggarwal5k <chiragaggarwal5k@gmail.com>
Console (appwrite/console)Project ID: Tip Each function runs in its own isolated container with custom environment variables |
Contributor
Greptile SummaryThe PR prevents empty header maps from being sent when creating function executions, avoiding backend validation failures while preserving non-empty headers.
Confidence Score: 5/5The PR appears safe to merge with no actionable defects identified. The change narrowly converts an empty header map to the established undefined omission pattern while continuing to send populated headers unchanged. Important Files Changed
Reviews (1): Last reviewed commit: "fix: omit empty headers on function crea..." | Re-trigger Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
The Functions "Create execution" wizard always sent
headers: {}when no header rows were filled. After utopia-http started preserving empty JSON objects asstdClass, cloud 1.9.6 rejects that value (Invalid headers param), so console executions fail even with no custom headers.Omit
headerswhen the built object is empty. Non-empty header maps are unchanged.Server-side fix: appwrite#13237. Community: https://appwrite.io/threads/1538495966536278127 and https://appwrite.io/threads/1538338403840561152
Test plan