insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

Insomnia forgets gRPC method with server reflection on restart

Open Tomasito665 opened this issue 1 year ago • 2 comments

Expected Behavior

  • The gRPC request "Select Method" dropdown menu remembers its options.
  • The gRPC request "Select Method" dropdown menu remembers the selected option.

Actual Behavior

  • The gRPC request "Select Method" dropdown menu is empty.
  • The gRPC request "Select Method" dropdown menu has no method selected.

Gif animation InsomniaForgetsGrpcMethodIssue

Reproduction Steps

  1. Run docker pull tkpd/gripmock:v1.11-beta to pull gRPC mock server docker image.
  2. Create a service.proto file with the following contents.
syntax = "proto3";

message FooRequest {
    string foo = 1;
}

message FooResponse {
    string foo = 1;
}

service FooService {
    rpc Foo (FooRequest) returns (FooResponse);
}
  1. Create a stub.json file in the same directory with the following contents.
{
    "service": "FooService",
    "method": "Foo",
    "input": {
        "matches": {
            "foo": "bar"
        }
    },
    "output": {
        "data": {
            "foo": "bar"
        }
    }
}
  1. Go to the directory where the service.proto file is located and run the following command to spin up the gRPC server.
docker run --rm -p 4770:4770 \
    -v ${PWD}/stub.json:/stub/stub.json \
    -v ${PWD}/service.proto:/proto/service.proto \
    tkpd/gripmock:v1.11-beta --stub=/stub /proto/service.proto
  1. Open Insomnia and create a new gRPC request with the host set to localhost:4770.
  2. Click on the refresh button to use server reflection.
  3. Click on "Select Method" and select the /FooService/Foo method.
  4. Fill in the request body with the following content.
{
    "foo": "bar"
}
  1. Restart Insomnia and open the same request.

Is there an existing issue for this?

Additional Information

Might be related to this other issue: https://github.com/Kong/insomnia/issues/4291.

Insomnia Version

2023.1.0

What operating system are you using?

macOS

Operating System Version

Ventura 13.2.1

Installation method

insomnia.rest

Last Known Working Insomnia version

No response

Tomasito665 avatar Apr 13 '23 11:04 Tomasito665

I can confirm I also have the same issue.

ravanscafi avatar Feb 29 '24 15:02 ravanscafi

Same issue

Insomnia Version

9.3.3

OS Version

Sonoma 14.6

rlindsey28 avatar Aug 06 '24 18:08 rlindsey28