Skip to content

Commit e4d97c7

Browse files
authored
ci: update error reference docs
1 parent de54a73 commit e4d97c7

5 files changed

Lines changed: 55 additions & 1 deletion

File tree

src/content/docs/en/reference/error-reference.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,6 @@ The following reference is a complete list of the errors you may encounter while
121121
- [**DataCollectionEntryParseError**](/en/reference/errors/data-collection-entry-parse-error/)<br/>Data collection entry failed to parse.
122122
- [**DuplicateContentEntrySlugError**](/en/reference/errors/duplicate-content-entry-slug-error/)<br/>Duplicate content entry slug.
123123
- [**ActionsWithoutServerOutputError**](/en/reference/errors/actions-without-server-output-error/)<br/>Actions must be used with server output.
124+
- [**ActionsUsedWithForGetError**](/en/reference/errors/actions-used-with-for-get-error/)<br/>An invalid Action query string was passed by a form.
125+
- [**ActionQueryStringInvalidError**](/en/reference/errors/action-query-string-invalid-error/)<br/>An invalid Action query string was passed by a form.
124126
- [**UnsupportedConfigTransformError**](/en/reference/errors/unsupported-config-transform-error/)<br/>Unsupported transform in content config.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
# NOTE: This file is auto-generated from 'scripts/error-docgen.mjs'
3+
# Do not make edits to it directly, they will be overwritten.
4+
# Instead, change this file: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
5+
# Translators, please remove this note and the <DontEditWarning/> component.
6+
7+
title: An invalid Action query string was passed by a form.
8+
i18nReady: true
9+
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
10+
---
11+
import DontEditWarning from '~/components/DontEditWarning.astro'
12+
13+
<DontEditWarning />
14+
15+
16+
> **ActionQueryStringInvalidError**: The server received the query string `?_astroAction=ACTION_NAME`, but could not find an action with that name. If you changed an action's name in development, remove this query param from your URL and refresh.
17+
18+
## What went wrong?
19+
The server received the query string `?_astroAction=name`, but could not find an action with that name. Use the action function's `.queryString` property to retrieve the form `action` URL.
20+
21+
**See Also:**
22+
- [Actions RFC](https://github.com/withastro/roadmap/blob/actions/proposals/0046-actions.md)
23+
24+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
# NOTE: This file is auto-generated from 'scripts/error-docgen.mjs'
3+
# Do not make edits to it directly, they will be overwritten.
4+
# Instead, change this file: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
5+
# Translators, please remove this note and the <DontEditWarning/> component.
6+
7+
title: An invalid Action query string was passed by a form.
8+
i18nReady: true
9+
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
10+
---
11+
import DontEditWarning from '~/components/DontEditWarning.astro'
12+
13+
<DontEditWarning />
14+
15+
16+
> **ActionsUsedWithForGetError**: Action ACTION_NAME was called from a form using a GET request, but only POST requests are supported. This often occurs if `method="POST"` is missing on the form.
17+
18+
## What went wrong?
19+
Action was called from a form using a GET request, but only POST requests are supported. This often occurs if `method="POST"` is missing on the form.
20+
21+
**See Also:**
22+
- [Actions RFC](https://github.com/withastro/roadmap/blob/actions/proposals/0046-actions.md)
23+
24+

src/content/docs/en/reference/errors/rewrite-encountered-an-error.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ import DontEditWarning from '~/components/DontEditWarning.astro'
1313
<DontEditWarning />
1414

1515

16+
:::caution[Deprecated]
17+
This error cannot be emitted by Astro anymore
18+
:::
19+
1620
> **RewriteEncounteredAnError**: The route ROUTE that you tried to render doesn't exist, or it emitted an error during the rendering phase. STACK ? STACK : ''.
1721
1822
## What went wrong?

src/content/docs/en/reference/errors/rewrite-with-body-used.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ Astro.rewrite("/target")
2626

2727
**See Also:**
2828
- [Request.clone()](https://developer.mozilla.org/en-US/docs/Web/API/Request/clone)
29-
- [Astro.rewrite](/en/reference/configuration-reference/#experimentalrewriting)
29+
- [Astro.rewrite](/en/reference/api-reference/#astrorewrite)
3030

3131

0 commit comments

Comments
 (0)