backstage-grpc-playground icon indicating copy to clipboard operation
backstage-grpc-playground copied to clipboard

Not receiving response from playground

Open ajinkya-harness opened this issue 7 months ago • 1 comments

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."
}

ajinkya-harness avatar Jul 17 '24 11:07 ajinkya-harness