Skip to content

Bruno changes last digits to zeros when receives long numbers in get response #2830

Closed Answered by helloanoop
IGGO0615 asked this question in Q&A
Discussion options

You must be logged in to vote

This has been fixed in v1.29.0

Note: If your response is Json, and it contains BigInt values, they may become corrupted during parsing because Bruno automatically processes the response data using JSON.parse(), which doesn’t natively support BigInt. This can result in a loss of precision for these values.

To prevent automatic parsing and work directly with the raw response data, add the below expression to the pre-request script.

req.disableParsingResponseJson();

Please see doc: https://docs.usebruno.com/advanced-guides/working-with-bigint

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sanjai0py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants