Hi i'm testing SpiceDB on an ec2 instance and I'm having problems interacting with the server using the python SDK. Running locally Python 3.9. The issue seems to be with the grpc library. While using grpcurl with docker I have no issues.
Starting the client as:
client = Client(
"my_instance_ip:50051", insecure_bearer_token_credentials("my_token"),
)
Getting the following error for any type of requests:
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:"my_instance_ip":50051: Endpoint is neither UDS or TCP loopback address."
debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:"my_instance_ip":50051: Endpoint is neither UDS or TCP loopback address. {grpc_status:14, created_time:"2022-10-31T13:30:28.815860789-03:00"}"
>
Any ideas or suggestions?