insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

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

Open lyingcrow opened this issue 3 years ago • 2 comments

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?

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

lyingcrow avatar Mar 09 '23 07:03 lyingcrow

I have this same result.

syntax = "proto3";

package token;

message Response { 
  int64 expiresIn = 1;
}

Screenshot-2024-09-06-12:49:16

sajanv88 avatar Sep 06 '24 10:09 sajanv88

Same thing here

image

message TestDataStructure {
    uint64 qty = 1; 
    uint64 price = 2;
}

message TestResponse {
    repeated TestDataStructure ask = 1;
    ...
}

1Bugivugi avatar Oct 01 '24 17:10 1Bugivugi

I am also facing the same issue

message ClientSubscriptionStatusResponse {
    string subscription_id = 1;
    string subscription_hash_id = 2;

    uint64 current_offset = 3;
    uint64 latest_offset = 4;
    uint64 lag = 5;

    bool is_online = 6;
    int64 lastConnectedOn = 7;
}

message ClientStatusResponse {
    string client_id = 1;
    repeated ClientSubscriptionStatusResponse subs = 2;
}

message ClientStatusListResponse {
    repeated ClientStatusResponse client = 1;
}

Image

ponder2000 avatar Aug 11 '25 07:08 ponder2000