Ninja
Ninja

Reputation: 301

Error: rpc error: code = Canceled desc = context canceled

I am using grpc go lang . and with that transformer . Don't know suddenly this error start appearing and no data is receiving on front end . Can any one please guide what is this error about ?

My log file :

2021/05/07 21:52:10 INFO: /api.VehicleService/GetVehicle
2021/05/07 21:52:10 ERROR: rpc error: code = Canceled desc = context canceled
2021/05/07 21:52:10 ERROR: rpc error: code = Canceled desc = context canceled
2021/05/07 21:52:10 ERROR: rpc error: code = Canceled desc = context canceled

and kindly let me know which file I need to paste here to get proper guideline. as I am new in this .

Upvotes: 1

Views: 28867

Answers (1)

TiGo
TiGo

Reputation: 617

By seeing your log it seems that a context is canceled. The reason might because your client is canceling the context of the request. Please provide your client and also your server code, I believe that will help us to help you. Creating connection in client and method of server that this error happens inside of it.

Upvotes: 0

Related Questions