Code Monkey home page Code Monkey logo

Comments (8)

huynhminhtan avatar huynhminhtan commented on September 16, 2024

Hi @debayandesarkar,

The protoc compiling was failed. Please recheck your input as Proto Root Directory, Library Directory (if you use externally lib as googleapis, ...) then clicking the Listing button in order to get existed methods.

Or, you can start with an example here.

Welcome and Thank you.

from jmeter-grpc-request.

debayandesarkar avatar debayandesarkar commented on September 16, 2024

Hi @huynhminhtan ,
Thanks for your prompt response. The proto root directory seems to be correct as it found the /opt/GitHub/pay-integrator-api/src/main/proto/com/expedia/payment/integrator/service/v1/integrator_payment_api.proto file. We are not using external library like googleapis. Hence, clicking on the "Listening" button is not rendering any methods. The proto file integrator_payment_api.proto doesn't have a service name and method name like the example below. The file only has the request and response mapping. Is that the reason the compilation is failing?

service Bookstore {
// Returns a list of all shelves in the bookstore.
rpc ListShelves (google.protobuf.Empty) returns (ListShelvesResponse) {
// Define HTTP mapping.
// Client example (Assuming your service is hosted at the given 'DOMAIN_NAME'):
// curl http://DOMAIN_NAME/v1/shelves
option (google.api.http) = { get: "/v1/shelves" };
}
Screen Shot 2021-04-25 at 12 50 07 AM

Regards
Debayan

from jmeter-grpc-request.

huynhminhtan avatar huynhminhtan commented on September 16, 2024

Hi @debayandesarkar,

Do you import other internal proto files? please check file path when importing. The integrator_payment_api.proto doesn't have a service name and method name, so I wonder how do you make many requests to your gRPC server?

Can you upload portable/simple version of the proto file?

Regards

from jmeter-grpc-request.

debayandesarkar avatar debayandesarkar commented on September 16, 2024

@huynhminhtan Did you get a chance to look at my response above? Does these implementation require the service and method names declaration in the .proto file?

Regards
Debayan

from jmeter-grpc-request.

debayandesarkar avatar debayandesarkar commented on September 16, 2024

@huynhminhtan Thanks for your response.I added the service name and method name in the service .proto file as shown below and the compilation seems to be successful. However, I am getting the below error now.

option java_outer_classname = "BraintreeClientImplGrpc";
/* Added to test with JMeter GRPC Request Sampler */
service BraintreeClientImpl {
rpc authorize (AuthorizeRequest) returns (AuthorizeResponse) {}
}

Thread Name:Thread Group 1-1
Sample Start:2021-04-28 00:33:07 PDT
Load time:59
Connect Time:0
Latency:0
Size in bytes:38
Sent bytes:0
Headers size in bytes:0
Body size in bytes:38
Sample Count:1
Error Count:1
Data type ("text"|"bin"|""):text
Response code:500
Response message:Exception: UNAVAILABLE: Network closed for unknown reason
SampleResult fields:
ContentType:
DataEncoding: null

Response Data: Caught exception while waiting for rpc

Note: There are 4 proto files under /src/main/proto as shown below of which integrator_payment_api.proto is where I added the service name & method names along with option java_outer_classname.
image

from jmeter-grpc-request.

debayandesarkar avatar debayandesarkar commented on September 16, 2024

@huynhminhtan Hi, did you get a chance to look at my latest response?

Regards
Debayan

from jmeter-grpc-request.

huynhminhtan avatar huynhminhtan commented on September 16, 2024

This issue is stale because it has been open for 30 days with no activity.

from jmeter-grpc-request.

huynhminhtan avatar huynhminhtan commented on September 16, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

from jmeter-grpc-request.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.