[graphql-alt] Handle transaction execution/simulation errors as BAD_USER_INPUT#25261
Merged
tpham-mysten merged 2 commits intomainfrom Feb 14, 2026
Merged
[graphql-alt] Handle transaction execution/simulation errors as BAD_USER_INPUT#25261tpham-mysten merged 2 commits intomainfrom
tpham-mysten merged 2 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
669548c to
3936215
Compare
3936215 to
bce47c2
Compare
amnn
approved these changes
Feb 6, 2026
Contributor
amnn
left a comment
There was a problem hiding this comment.
This looks right to me, but just to be sure, can you include an example of what one of these error messages looks like and/or add a test for that case? One of the issues we had previously was that the error looked slightly out of place because it was obviously a gRPC error being output from a GraphQL request.
Contributor
Author
|
Thanks for the review! Sure. I have added the example error and also added a snapshot test to show how the error would look like in |
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.
Description
InvalidArgumentandNotFounderrors fromexecuteTransactionandsimulateTransactionnow return GraphQLBAD_USER_INPUTerrors instead of being returned in anerror/errorsfieldInvalidArgumentvariant toTransactionInputErrorwith message prefix "Invalid argument:"errorfield fromSimulationResultanderrorsfield fromExecutionResultExample error:
Test plan
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.