# SYNC_BAD_REQUEST

<!-- Generated by docs/modules/diagnostics from the package catalogs. Write a guide in docs/diagnostics/<CODE>.md instead of editing this file. -->

The request is not a valid pull or push, its subset is not single column values, its subset uses a column that is not in `subsets` or `where`, or it asks for a live stream of a definition with `live: false`. For a subset column, add it to `subsets` in `server/sync/<name>.ts`. The writes of a refused push go to `failures`, since sending them again gives the same answer. After the live stream refuses a store with this code, that store only pulls.

## Source

`SYNC_BAD_REQUEST` belongs to the `sync` package. Its catalog entry is in [`src/errors.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/errors.ts#L25). It is raised in [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L121), [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L162), [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L948), [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L953), [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L958).

See [all Sync diagnostics](https://vitehub.dev/docs/sync/diagnostics).

<!-- vitehub-docs:section-links -->
## In this section

- [Overview](https://vitehub.dev/raw/docs/sync.md)
- [Get started](https://vitehub.dev/raw/docs/sync/get-started.md)
- [Server API](https://vitehub.dev/raw/docs/sync/server-api.md)
- [Limits and errors](https://vitehub.dev/raw/docs/sync/limits-and-errors.md)
- [Vue](https://vitehub.dev/raw/docs/sync/vue.md)

Next: [SYNC_FORBIDDEN](https://vitehub.dev/raw/docs/sync/diagnostics/sync_forbidden.md)

All pages: [llms.txt](https://vitehub.dev/llms.txt)
