Any update on this?
On Wed, 15 Mar, 2023, 4:30 pm Suvajit Dutta, <[email protected]> wrote:
> syntax = "proto3";
>
> import "google/protobuf/timestamp.proto";
> import "google/protobuf/empty.proto";
> import "google/protobuf/wrappers.proto";
>
>
> package account_user;
> option go_package="./pb";
>
> //getting name,email and date of birth
> message UserRegisterStep1Request{
> string name=1;
> string email=2;
> google.protobuf.Timestamp dob=3;
> }
>
> //sending a message
> message UserRegisterStep1Response{
> string result=1;
> }
>
> //getting details of a user
> message UserRegisterRequest {
> string name = 1;
> string email = 2;
> google.protobuf.Timestamp dob=3;
> string username = 4;
> string password = 5;
> string confirmPassword=6;
> google.protobuf.FloatValue latitude=7;
> google.protobuf.FloatValue longitude=8;
> }
>
> //sending a jwt token
> message UserRegisterResponse{
> string token=1;
> string chatToken=2;
> }
>
> //getting user credentials
> message UserLoginRequest {
> string username = 3;
> string password = 4;
> google.protobuf.FloatValue latitude=5;
> google.protobuf.FloatValue longitude=6;
> }
>
> //sending usersetting details
> message UserLoginResponse {
> string access_token = 1;
> string chatToken=2;
> }
>
> //getting user eamil
> message ForgotPasswordRequest{
> string email =1;
> }
>
> //sending a message
> message ForgotPasswordResponse{
> string msg = 1;
> }
>
> //getting a otp
> message OtpVerificationsRequest{
> string email =1;
> string otp =2;
> }
>
> //sending a message
> message OtpVerificationsResponse{
> string msg = 1;
> }
>
> //getting user credentials with new password
> message ResetPasswordRequest{
> string email =1;
> string otp =2;
> string password =3;
> string confirmPassword =4;
> }
>
> //sending a jwt token
> message ResetPasswordResponse{
> string msg =1;
> string token =2;
> string chatToken=3;
> }
>
> //getting passwords
> message ChangePasswordRequest{
> string oldPassword = 1;
> string newPassword =2;
> string confirmPassword =3;
> }
>
> //sending a message
> message ChangePasswordResponse{
> string message =1;
> }
>
> //getting device token
> message LogoutRequest{
> string deviceToken=1;
> string notificationToken=2;
> }
>
> //sending a message
> message LogoutResponse{
> string message=1;
> }
>
> //user delete account response
> message DeleteAccountResponse{
> string message=1;
> }
>
> //services related to user account
> service UserAccountService{
> //registration of a user step1
> rpc RegisterUserStep1(UserRegisterStep1Request) returns
> (UserRegisterStep1Response){};
> //registration of a user
> rpc RegisterUser(UserRegisterRequest) returns (UserRegisterResponse){};
> //user login
> rpc LoginUser(UserLoginRequest) returns (UserLoginResponse){};
> //creating a new password
> rpc ForgotPassword(ForgotPasswordRequest) returns
> (ForgotPasswordResponse) {};
> //validating the otp
> rpc OtpVerifications(OtpVerificationsRequest) returns
> (OtpVerificationsResponse) {};
> //resetting password
> rpc ResetPassword(ResetPasswordRequest) returns
> (ResetPasswordResponse) {};
> //changing password
> rpc ChangePassword(ChangePasswordRequest) returns
> (ChangePasswordResponse) {};
> //user logout
> rpc Logout(LogoutRequest) returns (LogoutResponse) {};
> //user delete account
> rpc DeleteAccount(google.protobuf.Empty) returns
> (DeleteAccountResponse) {};
> }
>
> On Wed, Mar 15, 2023 at 4:18 PM 雷咩咩 <[email protected]> wrote:
>
>> can you also show how's your proto looks like?
>>
>>
>>
>>
>> ------------------ 原始邮件 ------------------
>> 发件人:
>> "JMeter Users List"
>>
>> <[email protected]>;
>> 发送时间: 2023年3月15日(星期三) 凌晨3:21
>> 收件人: "user"<[email protected]>;
>>
>> 主题: Jmeter issue for grpc request plugin
>>
>>
>>
>> I have installed the grpc request plugging in my latest jmeter
>> version.I am using java 19 and maven and grpc request plugin 1.2.6.
>>
>>
>> After setting all the grpc request sampler fields when I am running
>> the script getting the following errors.
>>
>>
>> Response message: GRPCSampler parsing exception: An unknown exception
>> occurred before the GRPC request was initiated, See response body for the
>> stack trace.
>>
>>
>> Response Body:
>> java.lang.RuntimeException: Caught exception while parsing request for rpc
>> at
>> vn.zalopay.benchmark.core.ClientCaller.buildRequestAndMetadata(ClientCaller.java:187)
>> at
>> vn.zalopay.benchmark.GRPCSampler.initGrpcInCurrentThread(GRPCSampler.java:204)
>> at
>> vn.zalopay.benchmark.GRPCSampler.initGrpcRequestSampler(GRPCSampler.java:133)
>> at vn.zalopay.benchmark.GRPCSampler.sample(GRPCSampler.java:90)
>> at
>> org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651)
>> at
>> org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570)
>> at
>> org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501)
>> at
>> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268)
>> at java.lang.Thread.run(Thread.java:1589)
>>
>>
>>
>>
>> See the following screenshots also.
>> Please help me to solve this problem.
>
>