Kong / Kong/insomnia

Treating int64 as string when decoding with GRPC server reflection or GRPC proto file

Open
#5,828 3 comments 2 reactions 1 assignee Claimed by @ryan-willis View on GitHub
A-grpc B-bug S-unverified
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

### Expected Behavior

the .proto-message-field is int64 type. the number becomes number

### Actual Behavior

the .proto-message-field is int64 type. the number becomes high {low} unsigned or string

### Reproduction Steps

1. create a grpc request
2. choose GRPC server reflection or GRPC proto file
3. enter body ,click send
4. the Response body numbers will be displayed as strings

proto file as follows
```
syntax = "proto3";

package test;

message TestRequest {
int64 id =1;
}

message TestResponse {
int64 code =1;
}
service TestServer {
rpc process (TestRequest) returns (TestResponse)
}
```

### Is there an existing issue for this?

- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.

### Additional Information

relevant https://github.com/protobufjs/protobuf.js/issues/53

### Insomnia Version

v2022.7.5

### What operating system are you using?

Windows

### Operating System Version

Windows 10 21H2

### Installation method

insomnia.rest

### Last Known Working Insomnia version

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.