I had the wrong server IP. Thanks Richard
On Wednesday, May 10, 2023 at 9:09:42 PM UTC+2 Christian Reiser wrote:
> Hi, did you solve this error? I am having the same one.
>
>
> ~/.local/lib/python3.7/site-packages/grpc/_channel.py in __call__(self,
> request, timeout, metadata, credentials, wait_for_ready, compression) 944
> state, call, = self._blocking(request, timeout, metadata, credentials, 945
> wait_for_ready, compression) --> 946 return _end_unary_response_blocking(
> state, call, False, None) 947 948 def with_call(self,
> ~/.local/lib/python3.7/site-packages/grpc/_channel.py in
> _end_unary_response_blocking(state, call, with_call, deadline) 847 return
> state.response 848 else: --> 849 raise _InactiveRpcError(state) 850 851
> _InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status
> = StatusCode.UNAVAILABLE details = "failed to connect to all addresses"
> debug_error_string =
> "{"created":"@1683741132.313379477","description":"Failed to pick
> subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3260,"referenced_errors":[{"created":"@1683741132.313377742","description":"failed
>
> to connect to all
> addresses","file":"src/core/lib/transport/error_utils.cc","file_line":167,"grpc_status":14}]}"
> On Saturday, June 5, 2021 at 6:05:47 AM UTC+2 sheikh jebran wrote:
>
>> Hi Team,
>>
>> the below code throws exception
>>
>>
>> with grpc.insecure_channel('192.168.0.176:1234') as channel:
>>
>> grpc.channel_ready_future(channel).start()
>> except grpc.FutureTimeoutError:
>> sys.exit('Error connecting to server')
>>
>>
>>
>>
>>
>> ============= EXCEPTION =============
>> Traceback (most recent call last):
>> File "/Users/sheikhjebran/Desktop/new/mySocket.py", line 53, in <module>
>> advertising()
>> File "/Users/sheikhjebran/Desktop/new/mySocket.py", line 48, in
>> advertising
>> response = stub.RequestAdvertisement(Nothing)
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/grpc/_channel.py",
>>
>> line 946, in __call__
>> return _end_unary_response_blocking(state, call, False, None)
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/grpc/_channel.py",
>>
>> line 849, in _end_unary_response_blocking
>> raise _InactiveRpcError(state)
>> grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that
>> terminated with:
>> status = StatusCode.UNAVAILABLE
>> details = "failed to connect to all addresses"
>> debug_error_string =
>> "{"created":"@1622865794.382882000","description":"Failed to pick
>> subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3009,"referenced_errors":[{"created":"@1622865794.382874000","description":"failed
>>
>> to connect to all
>> addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":398,"grpc_status":14}]}"
>> >
>>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/7fad5590-024b-4da0-ba06-bf1c777221b8n%40googlegroups.com.