# SYNC_ACTION_REFUSED

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

An action called `refuse(message)` or threw, so none of its writes applied. After `refuse(message)`, the message is `message`. After a thrown error, the message is the message of the error when it is a ViteHub error, an error with an HTTP status below 500, or a schema error with `issues`. Else it is "The action failed.", and the server log has the error. The optimistic change of the action goes away. Change the arguments, then `retry()` the failure, or `dismiss()` it.

## Source

`SYNC_ACTION_REFUSED` 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#L21). It is raised in [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L658), [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L663), [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L666).

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: [Get started](https://vitehub.dev/raw/docs/sync/get-started.md)

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