Skip to content

fix(client): increase timeout for file upload requests#11

Merged
4ier merged 1 commit into4ier:mainfrom
Acring:fix/file-upload-timeout
Mar 20, 2026
Merged

fix(client): increase timeout for file upload requests#11
4ier merged 1 commit into4ier:mainfrom
Acring:fix/file-upload-timeout

Conversation

@Acring
Copy link
Copy Markdown

@Acring Acring commented Mar 18, 2026

The default 30s HTTP client timeout is too short for file uploads, causing "context deadline exceeded" errors. Use a dedicated 5-minute timeout for the UploadFileContent method.

The default 30s HTTP client timeout is too short for file uploads,
causing "context deadline exceeded" errors. Use a dedicated 5-minute
timeout for the UploadFileContent method.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@4ier
Copy link
Copy Markdown
Owner

4ier commented Mar 20, 2026

Thanks for the fix @Acring! 🎉 The upload timeout issue was a real pain point — this is clean and to the point. Merged.

I've opened a small follow-up in #13 to swap the httpClient.Timeout mutation for context.WithTimeout (concurrency safety), but your diagnosis and fix were spot on. Appreciate the contribution!

@Acring Acring deleted the fix/file-upload-timeout branch March 20, 2026 02:19
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.

3 participants