Skip to main content

Errors Not Appearing

Make sure it starts with sq_pk_ and matches the project. Verify in Dashboard > Settings > API Keys.
Add debug: true to init(). Look for [squasher] messages in your console.
Look for POST requests to ingest.squasher.ai in the Network tab.
  • 202 = accepted (check dashboard)
  • 401 = invalid API key
  • 403 = key doesn’t match project
  • 429 = hit event limit
Vercel drains batch deliveries every 10-30 seconds. Wait at least a minute.
If sampleRate is below 1, not all events are captured. Set to 1 for debugging.

Minified Stack Traces

Production builds minify JavaScript. Upload source maps to get readable traces. See Source Maps.

SDK Not Initializing

Make sure SQUASHER_API_KEY and SQUASHER_PROJECT_ID are set in your deployment environment (not just .env.local).
instrumentation.ts must be at ./instrumentation.ts or ./src/instrumentation.ts. No other location works.
Enable the instrumentation hook: experimental: { instrumentationHook: true } in next.config.js.

Log Drain Issues

Custom HTTP log drains require Vercel Pro or higher. Use the SDK on Vercel free tier.
Railway drain uses keyword matching (“error”, “panic”, “exception”). Tune with the SDK for precise control.

Still Stuck?

Email support@squasher.ai with your project ID, SDK version, and debug: true output.