backstage-grpc-playground
backstage-grpc-playground copied to clipboard
Not receiving response from playground
Not able to get response from the playground while testing it using a live server. The wait for response is followed by failed to fetch message.
This was the proto file
syntax = "proto3";
package connectrpc.eliza.v1;
// The ElizaService definition.
service ElizaService {
// Sends a message and receives a response.
rpc Say (SayRequest) returns (SayResponse) {}
}
// The request message containing the user's sentence.
message SayRequest {
string sentence = 1;
}
// The response message containing the response from Eliza.
message SayResponse {
string sentence = 1;
}
This was the grpc curl which works
➜ ~ grpcurl \
-d '{"sentence": "I feel happy."}' \
demo.connectrpc.com:443 \
connectrpc.eliza.v1.ElizaService/Say
{
"sentence": "Feeling happy? Tell me more."
}