Troubleshooting — Getting Started
Common issues and how to fix them.
Authentication
Section titled “Authentication””Unauthorized” or 401 errors
Section titled “”Unauthorized” or 401 errors”- Check your token: Workspace tokens start with
mwt_. Project API keys start withask_. Make sure you’re using the right one. - Token expired: Workspace tokens don’t expire, but project auth tokens do. Re-authenticate with
aerostack login. - Wrong workspace: Verify the workspace slug matches the token. A token from workspace “acme-dev” won’t work for “acme-prod”.
”Forbidden” or 403 errors
Section titled “”Forbidden” or 403 errors”- Plan limits: You may have hit your plan’s rate or resource limits. Check your billing dashboard.
- Tool permissions: If using agent automation, check that the tool is enabled for your workspace.
CLI Issues
Section titled “CLI Issues”aerostack: command not found
Section titled “aerostack: command not found”# Reinstallcurl -fsSL https://get.aerostack.dev | sh
# Or use npx (no install needed)npx @aerostack/cli init my-projectaerostack login hangs
Section titled “aerostack login hangs”- Check your internet connection
- Try with
--verboseflag:aerostack login --verbose - If behind a corporate proxy, set
HTTPS_PROXYenvironment variable
aerostack dev fails to start
Section titled “aerostack dev fails to start”- Make sure port 8787 is not in use:
lsof -i :8787 - Check that
wrangler.toml(oraerostack.toml) exists in your project root - Run
npm installto ensure dependencies are installed
SDK Integrations
Section titled “SDK Integrations”getTools() returns empty tools array
Section titled “getTools() returns empty tools array”- Verify your workspace has MCP servers connected (check the dashboard)
- Check that the MCP servers are deployed and active (not paused)
- Ensure your workspace token has access to the connected servers
Tool calls fail with “tool not found”
Section titled “Tool calls fail with “tool not found””- The tool may have been removed from the workspace since you fetched tools. Call
getTools()again. - For
@aerostack/sdk-openai: tool names are sanitized to fit OpenAI’s 64-character limit. The SDK handles this automatically — don’t manually map names.
TypeScript errors with SDK imports
Section titled “TypeScript errors with SDK imports”# Make sure you have the latest versionnpm install @aerostack/sdk-vercel-ai@latestnpm install @aerostack/sdk-langchain@latestnpm install @aerostack/sdk-openai@latestMCP Servers
Section titled “MCP Servers””MCP server not responding”
Section titled “”MCP server not responding””- Check server status in your MCP dashboard
- Hosted MCPs may take 10-30 seconds on first cold start
- Proxied MCPs depend on the upstream service being available
Secrets not working
Section titled “Secrets not working”- Secrets are encrypted and injected at runtime. They don’t appear in logs.
- Verify the secret name matches exactly (case-sensitive)
- After updating a secret, the MCP server may need a fresh invocation to pick it up
Bot not responding to messages
Section titled “Bot not responding to messages”- Check the webhook is registered: look for a green “Active” status in your bot settings
- Verify the platform token is correct (e.g., Telegram BotFather token)
- Check the bot’s conversation logs in the dashboard for errors
- Ensure the bot’s workspace has the required MCP tools connected
Bot responds but tools don’t work
Section titled “Bot responds but tools don’t work”- The bot’s workspace must have the relevant MCP servers connected
- Check that tool permissions allow the bot to use those tools
- Look at the workflow execution log for error details
Deployments
Section titled “Deployments”Deploy fails with “worker size exceeded”
Section titled “Deploy fails with “worker size exceeded””- Cloudflare Workers have a 10MB limit after compression
- Remove unused dependencies from your function
- Split large functions into smaller, focused ones
Changes not reflecting after deploy
Section titled “Changes not reflecting after deploy”- Allow 30-60 seconds for edge propagation
- Clear your browser cache or test with
curl - Check that you deployed to the right environment (dev vs prod)
Still Stuck?
Section titled “Still Stuck?”- Ask in our Discord community — we respond fast
- Use the AI Assistant to debug issues
- Email us: hello@aerostack.dev