Skip to content

Fix error responses for data operations in VespaAsync - #1331

Merged
thomasht86 merged 4 commits into
masterfrom
oystein-dev/fix-error-responses
Jul 31, 2026
Merged

Fix error responses for data operations in VespaAsync#1331
thomasht86 merged 4 commits into
masterfrom
oystein-dev/fix-error-responses

Conversation

@oystein-dev

@oystein-dev oystein-dev commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Error responses from the vespa api might not be json. This would previously give a json decode error. Now the functions instead return {"message": response.text} with the correct error code.

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@oystein-dev oystein-dev changed the title Fix error responses for data operations in VespaSync and VespaAsync Fix error responses for data operations in VespaAsync Jul 31, 2026
@oystein-dev
oystein-dev marked this pull request as ready for review July 31, 2026 12:08
@oystein-dev
oystein-dev requested a review from thomasht86 July 31, 2026 12:09
Comment thread vespa/application.py

@thomasht86 thomasht86 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@thomasht86
thomasht86 merged commit 0a8d418 into master Jul 31, 2026
30 checks passed
@thomasht86
thomasht86 deleted the oystein-dev/fix-error-responses branch July 31, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants