Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.0.0
-
None
-
None
-
MacOS Catalina, python 3.7.4
Description
Authentication with FlightClient changed from version 1.0.1 to 2.0.0 and is undocumented.
>>> from pyarrow import __version__
>> print(_version_)
'1.0.1'
>>> from handlers import ApiKeyClientAuthHandler # custom handler}}
>>> from pyarrow.flight import FlightClient
>>> client = FlightClient(location="grpc+tcp://xxxxxxxxxx.com")
>>> client.authenticate(ApiKeyClientAuthHandler(api_key="xxxxx"))
>>>
And the exact same code in 2.0.0 breaks
>>> from pyarrow import __version__
>> print(_version_)
'2.0.0'
>>> from handlers import ApiKeyClientAuthHandler # custom handler}}
>>> from pyarrow.flight import FlightClient
>>> client = FlightClient(location="grpc+tcp://xxxxxxxxxx.com")
>>> client.authenticate(ApiKeyClientAuthHandler(api_key="xxxxx"))
Traceback (most recent call last):
File "scratch.py", line 15, in <module>
client.authenticate(ApiKeyClientAuthHandler(api_key="xxxxxxxxxx"))
File "pyarrow/_flight.pyx", line 1149, in pyarrow._flight.FlightClient.authenticate
File "pyarrow/_flight.pyx", line 70, in pyarrow._flight.check_flight_status
pyarrow._flight.FlightUnavailableError: gRPC returned unavailable error, with message: failed to connect to all addresses
What happened?