insomnia
insomnia copied to clipboard
Insomnia forgets gRPC method with server reflection on restart
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
Reproduction Steps
- Run
docker pull tkpd/gripmock:v1.11-beta
to pull gRPC mock server docker image. - 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);
}
- 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"
}
}
}
- 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
- Open Insomnia and create a new gRPC request with the host set to
localhost:4770
. - Click on the refresh button to use server reflection.
- Click on "Select Method" and select the
/FooService/Foo
method. - Fill in the request body with the following content.
{
"foo": "bar"
}
- Restart Insomnia and open the same request.
Is there an existing issue for this?
- [X] I have searched the issue tracker for this problem.
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
I can confirm I also have the same issue.
Same issue
Insomnia Version
9.3.3
OS Version
Sonoma 14.6