Fingineering
04/15/2025, 8:20 AMgrpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50051: Socket closed"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2025-04-14T16:52:26.97323+02:00", grpc_status:14, grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50051: Socket closed"}"
I did try:
- URL as localhost:50051, 127.0.0.1:50051
- Use the Client with insecure_bearer_token_credentials as well as bearer_token_credentials
- Use the InsecureClient with insecure_bearer_token_credentials as well as bearer_token_credentials
- Use the AsyncClient
Im using spiceDB 1.40.1 and python 3.12.9 as well as the latest authzed package.
I'm a bit out of ideas what to try, hence any help or hints appreciatedvroldanbet
04/15/2025, 8:47 AMcertChain argument in `bearer_token_credentials`:
https://github.com/authzed/authzed-py/blob/aff770dd70514721fc6436f27b23f4a5064f2d13/grpcutil/__init__.py#L6Fingineering
04/15/2025, 9:00 AMpython
f = open('fname.crt', 'rb')
cert = f.read()
cred = bearer_token_credential('mysupersecretpwd', cert)
`vroldanbet
04/15/2025, 9:26 AMFingineering
04/22/2025, 10:41 AMvroldanbet
04/22/2025, 12:54 PMzed supports this: https://github.com/authzed/zed/pull/309