Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create schema and samples for non-400 write request errors #5171

Open
jstirnaman opened this issue Oct 11, 2023 · 1 comment
Open

Create schema and samples for non-400 write request errors #5171

jstirnaman opened this issue Oct 11, 2023 · 1 comment
Labels
hold off Should not be merged or address yet InfluxDB v3 InfluxDB v3.0 (platforms using IOx)

Comments

@jstirnaman
Copy link
Contributor

          Seperately, can we have 2 separate examples so the user can delineate:
  • per-line rejection (with something writtten).
  • not per-rejection. Nothing written. Error message is NOT partialWriteErrorWithRejectedPoints. e.g. namespace errors

Originally posted by @wiedld in #5169 (comment)

@jstirnaman
Copy link
Contributor Author

jstirnaman commented Oct 11, 2023

From @wiedld

I checked the code. We return a 400 BadRequest ("invalid") for:
Invalid namespaces, when you have autocreate-namespaces enabled.
Last I heard, serverless had namespace autocreate on by default. Whereas dedicated had it off.
If off, then it's another error (I think permissions 403 -- but I would have to check. It's another code layer.).
Wrong encoding of the request header or body.
Other errors that they are less likely to hit.
{
code: "invalid"
message: "body content is not valid utf8: invalid utf-8 sequence of 1 bytes from index 1"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold off Should not be merged or address yet InfluxDB v3 InfluxDB v3.0 (platforms using IOx)
Projects
None yet
Development

No branches or pull requests

1 participant