Skip to content
Back to skills

329 Gotchas 92b945bc

ASecurity

**Most common issue.** Events accepted (HTTP 200) but never appear in sink.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
developmenttypescriptgobashsql

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 329-gotchas_92b945bc --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 329 Gotchas 92b945bc?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 329 Gotchas 92b945bc
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-329-gotchas-92b945bc/badge)](https://www.skillsdirectory.com/skills/tools-only-329-gotchas-92b945bc)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Pipelines Gotchas

## Critical Issues

### Events Silently Dropped

**Most common issue.** Events accepted (HTTP 200) but never appear in sink.

**Causes:**

1. Schema validation fails - structured streams drop invalid events silently
2. Waiting for roll interval (10-300s) - expected behavior

**Solution:** Validate client-side with Zod:

```typescript
const EventSchema = z.object({ user_id: z.string(), amount: z.number() })
try {
  const validated = EventSchema.parse(rawEvent)
  await env.STREAM.send([validated])
} catch (e) {
  /* get immediate feedback */
}
```

### Pipelines Are Immutable

Cannot modify SQL after creation. Must delete and recreate.

```bash
npx wrangler pipelines delete old-pipeline
npx wrangler pipelines create new-pipeline --sql "..."
```

**Tip:** Use version naming (`events-pipeline-v1`) and keep SQL in version control.

### Worker Binding Not Found

**`env.STREAM is undefined`**

1. Use **stream ID** (not pipeline ID) in `wrangler.jsonc`
2. Redeploy after adding binding

```bash
npx wrangler pipelines streams list  # Get stream ID
npx wrangler deploy
```

## Common Errors

| Error                      | Cause                         | Fix                                 |
| -------------------------- | ----------------------------- | ----------------------------------- |
| Events not in R2           | Roll interval not elapsed     | Wait 10-300s, check `roll_interval` |
| Schema validation failures | Type mismatch, missing fields | Validate client-side                |
| Rate limit (429)           | >5 MB/s per stream            | Batch events, request increase      |
| Payload too large (413)    | >1 MB request                 | Split into smaller batches          |
| Cannot delete stream       | Pipeline references it        | Delete pipelines first              |
| Sink credential errors     | Token expired                 | Recreate sink with new credentials  |

## Limits (Open Beta)

| Resource                            | Limit      |
| ----------------------------------- | ---------- |
| Streams/Sinks/Pipelines per account | 20 each    |
| Payload size                        | 1 MB       |
| Ingest rate per stream              | 5 MB/s     |
| Event retention                     | 24 hours   |
| Recommended batch size              | 100 events |

## SQL Limitations

- **No JOINs** - single stream per pipeline
- **No window functions** - basic SQL only
- **No subqueries** - must use `INSERT INTO ... SELECT ... FROM`
- **No schema evolution** - cannot modify after creation

## Debug Checklist

- [ ] Stream exists: `npx wrangler pipelines streams list`
- [ ] Pipeline healthy: `npx wrangler pipelines get <ID>`
- [ ] SQL syntax matches schema
- [ ] Worker redeployed after binding added
- [ ] Waited for roll interval
- [ ] Accepted vs processed count matches (no validation drops)

Files in this skill

  • README.md1000 B
  • skill.md2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.