Skip to content

fix(templates): add fetch timeout and handle network errors gracefully#4336

Merged
Siumauricio merged 1 commit intocanaryfrom
fix/template-fetch-timeout-error-handling
May 1, 2026
Merged

fix(templates): add fetch timeout and handle network errors gracefully#4336
Siumauricio merged 1 commit intocanaryfrom
fix/template-fetch-timeout-error-handling

Conversation

@Siumauricio
Copy link
Copy Markdown
Contributor

Summary

  • Add AbortSignal.timeout(10000) to all fetch() calls in fetchTemplatesList and fetchTemplateFiles so requests fail cleanly in 10s instead of hanging indefinitely when templates.dokploy.com is unreachable
  • Add try/catch to the getTags tRPC endpoint which was missing error handling, causing a -32603 INTERNAL_SERVER_ERROR instead of returning an empty array
  • Simplify github.ts by removing redundant try/catch blocks that only re-threw errors

Closes #4282

Add 10s AbortSignal timeout to all template fetch calls so they fail
cleanly instead of hanging indefinitely when templates.dokploy.com is
unreachable. Add try/catch to getTags endpoint which was missing error
handling, causing a 500 instead of returning an empty list.

Closes #4282
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 1, 2026
@Siumauricio Siumauricio merged commit e0c6ed6 into canary May 1, 2026
5 checks passed
@Siumauricio Siumauricio deleted the fix/template-fetch-timeout-error-handling branch May 1, 2026 00:52
@dosubot dosubot Bot added the bug Something isn't working label May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Template search not working

1 participant