본문으로 바로가기

gRPC Error

category software engineering/backend 2022. 8. 26. 14:08
728x90

Errors  |  Cloud APIs  |  Google Cloud - error model for Google APIs.

 

When the server returns from the handler using the Status error model, clients can use their Status error model.

However, at least it seems necessary to check how the status error model can be used in the client for each programming language used by the company.

Node.js (content copied from the link below)

 

StatusObject

Represents the status of a completed request. If the code is grpc.status.OK, then the request has been completed successfully. Otherwise, if the request has failed, details will contain a description of the error. Either way, the metadata contains the trailing response metadata sent by the server when it finishes processing the call.

 

https://grpc.github.io/grpc/node/grpc.html#~StatusObject

'software engineering > backend' 카테고리의 다른 글

Query on S3 ( Athena, Redshift )  (0) 2022.08.29
DocumentDB Vs MongoDB  (0) 2022.08.26
go-pprof  (0) 2022.08.25
Topicctl (Kafka management)  (0) 2022.08.25
gRPC  (0) 2022.08.25