postman-app-support
postman-app-support copied to clipboard
VScode Extention postman Loss of Precision When Sending Large uint64 gRPC Values
Is there an existing issue for this?
- [X] I have searched the tracker for existing similar issues and I know that duplicates will be closed
Describe the Issue
Hi,
I'm experiencing an issue when using the Postman plugin to send gRPC requests to my server. When I send a large uint64 value in a request, the value received by the server is different from what I sent. Specifically, when I send 722390671457054703, the server receives 722390671457054720.
It seems that the problem is related to how JavaScript handles large integers. JavaScript uses 64-bit double-precision floating-point numbers, which can't accurately represent very large integers. As a result, large integers are rounded, leading to precision loss.
Thank you!
Steps To Reproduce
Use the Postman plugin in VS Code to send a gRPC request with a large uint64 value (e.g., 722390671457054703). Observe that the value received by the server is different (e.g., 722390671457054720). Expected Behavior: The server should receive the exact uint64 value that was sent in the request.
Screenshots or Videos
No response
Operating System
Windows
Postman Version
Extention 1.1.0
Postman Platform
Other
User Account Type
Signed In User
Additional Context?
VS Code Version: 1.91.1 Postman Plugin Version: 1.1.0 Operating System: WSL2 Is there a way to handle large uint64 values accurately in Postman when sending gRPC requests? Any help or workaround would be greatly appreciated.