Skip to main content
Learn how to handle errors gracefully, implement robust reconnection strategies, and follow production-ready best practices for gRPC streaming in Python.

gRPC Status Codes

gRPC uses standard status codes to indicate errors. Understanding these codes is essential for proper error handling in Python.

Common Status Codes

Checking Error Codes in Python


Common Errors and Solutions

1. UNAUTHENTICATED - Authentication Failed

Causes:
  • Invalid access token
  • Expired access token
  • Missing authorization metadata

2. UNAVAILABLE - Service Unavailable

Causes:
  • Network connectivity issues
  • Server temporarily unavailable
  • Firewall blocking connection

3. INVALID_ARGUMENT - Bad Request

Causes:
  • Invalid symbol
  • Invalid depth value
  • Malformed request

Next Steps

Authentication

Review authentication best practices

Market Data Stream

Learn about market data streaming

Order Stream

Learn about order streaming