Skip to content

Commit c833390

Browse files
fix(write-api): Update Cloud Serverless outside-retention failure to HTTP 422
1 parent 4e5a87c commit c833390

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

api-docs/cloud-serverless/v2/ref.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7705,6 +7705,13 @@ paths:
77057705
InfluxDB rejected the batch and did not write any data.
77067706
77077707
InfluxDB returns this error if the payload exceeds the 50MB size limit.
7708+
'422':
7709+
description: |
7710+
Unprocessable Entity.
7711+
7712+
The request contained data outside the bucket's retention window, causing InfluxDB to reject the batch and write no data.
7713+
7714+
The response body contains details about the [rejected points](/influxdb/cloud-serverless/write-data/troubleshoot/#troubleshoot-rejected-points).
77087715
'429':
77097716
description: |
77107717
Too many requests.

content/influxdb/cloud-serverless/write-data/troubleshoot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ The `message` property of the response body may contain additional details about
5555
| `204 "No Content"` | no response body | If InfluxDB ingested all of the data in the batch |
5656
| `400 "Bad request"` | `line` contains the first malformed line, `message` describes rejected points | If request data is malformed |
5757
| `401 "Unauthorized"` | | If the `Authorization` header is missing or malformed or if the [token](/influxdb/cloud-serverless/admin/tokens/) doesn't have [permission](/influxdb/cloud-serverless/admin/tokens/create-token/) to write to the bucket. See [examples using credentials](/influxdb/cloud-serverless/get-started/write/#write-line-protocol-to-influxdb) in write requests. |
58-
| `403 "Forbidden"` | `message` contains details about the error | If the data isn't allowed (for example, falls outside of the bucket's retention period).
5958
| `404 "Not found"` | requested **resource type** (for example, "organization" or "bucket"), and **resource name** | If a requested resource (for example, organization or bucket) wasn't found |
6059
| `413 “Request too large”` | cannot read data: points in batch is too large | If a request exceeds the maximum [global limit](/influxdb/cloud-serverless/admin/billing/limits/) |
60+
| `422 "Unprocessable Entity"` | `message` contains details about the error | If the data isn't allowed (for example, falls outside of the bucket's retention period).
6161
| `429 “Too many requests”` | | If the number of requests exceeds the [adjustable service quota](/influxdb/cloud-serverless/admin/billing/limits/#adjustable-service-quotas). The `Retry-After` header contains the number of seconds to wait before trying the write again. | If a request exceeds your plan's [adjustable service quotas](/influxdb/cloud-serverless/admin/billing/limits/#adjustable-service-quotas)
6262
| `500 "Internal server error"` | | Default status for an error |
6363
| `503 "Service unavailable"` | | If the server is temporarily unavailable to accept writes. The `Retry-After` header contains the number of seconds to wait before trying the write again.

0 commit comments

Comments
 (0)