pygate / pygate-gRPC

A Python gRPC Powergate client
http://pygate.tech
MIT License
22 stars 5 forks source link

Not connecting to Textile hosted Powergate #41

Closed peterVG closed 4 years ago

peterVG commented 4 years ago

pinging the API address of the Textile hosted Powergate (e.g. with a healthcheck) results in:

grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
    status = StatusCode.INTERNAL
    details = "Trying to connect an http1.x server"
    debug_error_string = "{"created":"@1601434992.100046000","description":"Error received from peer ipv4:52.224.38.93:443","file":"src/core/lib/surface/call.cc","file_line":1055,"grpc_message":"Trying to connect an http1.x server","grpc_status":13}"

Test code:

from pygate_grpc.client import PowerGateClient

client = PowerGateClient("api.pow.xxxx.textile.io:443")

healthcheck = client.health.check()

print(healthcheck)