chore: backport v2 write API error response format fix - #26787
Merged
Conversation
pauldix
approved these changes
Sep 10, 2025
hiltontj
marked this pull request as draft
September 10, 2025 18:24
Contributor
Author
|
Ah, sorry @pauldix Claude missed porting over the tests 🤦 I am prodding it to do that now. |
Backports changes from influxdb_pro PR #1294 to make the /v2/write API error responses conform to the documented schema with {"code": "...", "message": "..."} format instead of the previous non-standard error format. This ensures backward compatibility with existing clients expecting the v2 API error format. Ref: influxdata/influxdb_pro#1294 test: add tests for v2 write API error response format Adds comprehensive tests to verify the /v2/write API error responses conform to the documented JSON schema with {"code": "...", "message": "..."} format. Tests cover: - Invalid line protocol syntax errors - Missing parameter validation errors - Schema conflict errors - Empty body errors - Malformed line protocol errors - Success responses (ensuring no error format is used) These tests were backported from influxdb_pro PR #1294
hiltontj
force-pushed
the
backport-pr-1294
branch
from
September 10, 2025 18:29
d2a804c to
0705de1
Compare
hiltontj
marked this pull request as ready for review
September 10, 2025 18:36
Contributor
Author
|
Okay, I am going to merge, since the only addition since approval was the tests, as-is, from the enterprise PR. |
hiltontj
added a commit
that referenced
this pull request
Sep 11, 2025
Backports changes from influxdb_pro PR #1294 to make the /v2/write API error responses conform to the documented schema with {"code": "...", "message": "..."} format instead of the previous non-standard error format. This ensures backward compatibility with existing clients expecting the v2 API error format. Ref: influxdata/influxdb_pro#1294 test: add tests for v2 write API error response format Adds comprehensive tests to verify the /v2/write API error responses conform to the documented JSON schema with {"code": "...", "message": "..."} format. Tests cover: - Invalid line protocol syntax errors - Missing parameter validation errors - Schema conflict errors - Empty body errors - Malformed line protocol errors - Success responses (ensuring no error format is used) These tests were backported from influxdb_pro PR #1294
hiltontj
added a commit
that referenced
this pull request
Sep 11, 2025
Backports changes from influxdb_pro PR #1294 to make the /v2/write API error responses conform to the documented schema with {"code": "...", "message": "..."} format instead of the previous non-standard error format. This ensures backward compatibility with existing clients expecting the v2 API error format. Ref: influxdata/influxdb_pro#1294 test: add tests for v2 write API error response format Adds comprehensive tests to verify the /v2/write API error responses conform to the documented JSON schema with {"code": "...", "message": "..."} format. Tests cover: - Invalid line protocol syntax errors - Missing parameter validation errors - Schema conflict errors - Empty body errors - Malformed line protocol errors - Success responses (ensuring no error format is used) These tests were backported from influxdb_pro PR #1294
hiltontj
added a commit
that referenced
this pull request
Sep 11, 2025
Backports changes from influxdb_pro PR #1294 to make the /v2/write API error responses conform to the documented schema with {"code": "...", "message": "..."} format instead of the previous non-standard error format. This ensures backward compatibility with existing clients expecting the v2 API error format. Ref: influxdata/influxdb_pro#1294 test: add tests for v2 write API error response format Adds comprehensive tests to verify the /v2/write API error responses conform to the documented JSON schema with {"code": "...", "message": "..."} format. Tests cover: - Invalid line protocol syntax errors - Missing parameter validation errors - Schema conflict errors - Empty body errors - Malformed line protocol errors - Success responses (ensuring no error format is used) These tests were backported from influxdb_pro PR #1294
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
V2WriteApiErrorwrapper type to format errors according to v2 API specification{"code": "...", "message": "..."}structure