gRPC

gRPC 0 OK vs 14 UNAVAILABLE

Both gRPC 0 (OK) and 14 (UNAVAILABLE) belong to the gRPC Status Codes category. 0 indicates that the operation completed successfully. Not an error; returned on success. Meanwhile, 14 means that the service is currently unavailable. This is most likely a transient condition, which can be corrected by retrying with a backoff.

0 OK
gRPC

Deskripsi

The operation completed successfully. Not an error; returned on success.

Ketika Anda Melihatnya

The RPC completed without any issues. This is the expected response for every successful gRPC call.

Cara Memperbaiki

No fix needed — this indicates everything worked correctly.

Deskripsi

The service is currently unavailable. This is most likely a transient condition, which can be corrected by retrying with a backoff.

Ketika Anda Melihatnya

The server is overloaded, shutting down, or a network partition occurred. This is the most common code to retry on, as it's explicitly transient.

Cara Memperbaiki

Retry with exponential backoff. If persistent, check the server health, load balancer configuration, and network connectivity between client and server.

Perbedaan Utama

1.

gRPC 0: The operation completed successfully. Not an error; returned on success.

2.

gRPC 14: The service is currently unavailable. This is most likely a transient condition, which can be corrected by retrying with a backoff.

3.

You encounter 0 when the RPC completed without any issues. This is the expected response for every successful gRPC call.

4.

You encounter 14 when the server is overloaded, shutting down, or a network partition occurred. This is the most common code to retry on, as it's explicitly transient.

Kapan Menggunakan Yang Mana

For 0 (OK): No fix needed — this indicates everything worked correctly. For 14 (UNAVAILABLE): Retry with exponential backoff. If persistent, check the server health, load balancer configuration, and network connectivity between client and server.

Pelajari Lebih Lanjut