Dust · My workspace
My Slack-notify val keeps timing out — find it, check the HTTP handler, and add a 5s fetch timeout.
dust
Completed in 14 sec
Using Val Town
I tracked down the failing val in Val Town, found the unbounded fetch in its HTTP handler, and patched it.
What I found
- Val: slack-notify-webhook. An HTTP val with 3 files — main.tsx, lib/format.ts, and deps.ts. The handler in main.tsx is the live endpoint receiving Slack events.
- Root cause. Line 24 calls fetch(SLACK_URL) with no timeout, so a slow Slack response hangs the request until Val Town's execution limit kills it.
- Fix applied. Wrapped the call with AbortSignal.timeout(5000) and added a try/catch that returns a 504 instead of hanging. Saved — redeployed live in ~100ms.
What you can do with Val Town
Locate and read any val
Search and browse your whole Val Town account, then open the exact file inside a val to read its handler, helpers, or dependencies.
search_vals
list_vals
list_val_files
get_file_content
Ship code that deploys live
Create new vals and add, rewrite, or delete files inside them — every save redeploys to a live URL in milliseconds, no build step.
create_val
create_file
write_file
update_file_content
Trigger your deployed endpoints
Call an HTTP val's live URL to test a webhook, run an API route, or fire a deployed function and inspect the real response.
call_http_endpoint
get_val
get_file_content
Supported actions in Val Town
Read & Search
- Get Val
- List Vals
- Search Vals
- List Val Files
Create & Update
- Create Val
- Get File Content
- Delete File
- Update File Content
- Write File
- Create File
- Call Http Endpoint
11 total actions available (4 read, 7 write)
Frequently asked questions about Val Town
Val Town allows you to run serverless functions that can perform custom data processing, API calls, and complex logic.
Other integrations you might like
Get started with Val Town
Connect Val Town to Dust and let AI agents handle your workflows.
14-day free trial. No credit card required.