Skip to content

upload_file: form-encode files.getUploadURLExternal (rejects JSON, seen live) - #10

Merged
Octember merged 1 commit into
mainfrom
claude/tools-for-next-time-9dd405
Jul 30, 2026
Merged

upload_file: form-encode files.getUploadURLExternal (rejects JSON, seen live)#10
Octember merged 1 commit into
mainfrom
claude/tools-for-next-time-9dd405

Conversation

@Octember

Copy link
Copy Markdown
Owner

First live use of upload_file failed: files.getUploadURLExternal is one of Slack's form-only endpoints and answers a JSON body with invalid_arguments: missing required field: filename/length. Reproduced from the VM with curl (JSON fails, form works). Fix: form-encode the reserve call; files.completeUploadExternal keeps JSON. Regression test asserts the content type and form body.

Already hotfixed on tag-daemon (scp + restart, verified by content).

🤖 Generated with Claude Code

…valid_arguments live

Slack rejects a JSON body on the reserve call (missing required field:
filename/length despite both being present). Form-encode it; the complete
call stays JSON. Regression test pins the content type.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Octember
Octember merged commit 04aa7b0 into main Jul 30, 2026
1 check passed
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