Forums

gRPC connection

I want to run my python script on pythonanywhere and this calls for a gRPC connection.

Everytime I run the code I get the following error:

grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
        status = StatusCode.UNAVAILABLE
        details = "failed to connect to all addresses"
        debug_error_string = "{"created":"@1651106098.472620730","description":"Failed to pick subchannel","file":"src/core/ext/filters/c
lient_channel/client_channel.cc","file_line":4142,"referenced_errors":[{"created":"@1651106098.472615704","description":"failed to connec
t to all addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":397,"grpc_status":14}]}"

Is there a solution for that? because the code works fine on my local machine

gRPC won't work -- see this post as well.