-
Notifications
You must be signed in to change notification settings - Fork 116
Description
I encountered the captioned error when running the following script, regardless python versions (3.8/3.7 were both tried).
from bravado.fido_client import FidoClient
from bravado.client import SwaggerClient
http_client = FidoClient()
client = SwaggerClient.from_url(
'http://petstore.swagger.io/v2/swagger.json',
http_client=http_client,
)
pet = client.pet.getPetById(petId=1).response().result
The trace stack:
Traceback (most recent call last):
File "C:/async_test.py", line 52, in
http_client=http_client,
File "C:\ProgramData\Anaconda3\envs\hft\lib\site-packages\bravado\client.py", line 98, in from_url
spec_dict = loader.load_spec(spec_url)
File "C:\ProgramData\Anaconda3\envs\hft\lib\site-packages\bravado\swagger_model.py", line 104, in load_spec
self.request_headers,
File "C:\ProgramData\Anaconda3\envs\hft\lib\site-packages\bravado\http_future.py", line 270, in result
incoming_response = self._get_incoming_response(timeout)
File "C:\ProgramData\Anaconda3\envs\hft\lib\site-packages\bravado\http_future.py", line 124, in wrapper
return func(self, *args, **kwargs)
File "C:\ProgramData\Anaconda3\envs\hft\lib\site-packages\bravado\http_future.py", line 291, in _get_incoming_response
inner_response = self.future.result(timeout=timeout)
File "C:\ProgramData\Anaconda3\envs\hft\lib\site-packages\bravado\fido_client.py", line 127, in result
return self._eventual_result.wait(timeout=timeout)
File "C:\ProgramData\Anaconda3\envs\hft\lib\site-packages\crochet_eventloop.py", line 239, in wait
result = self._result(timeout)
File "C:\ProgramData\Anaconda3\envs\hft\lib\site-packages\crochet_eventloop.py", line 197, in _result
self._result_set.wait(timeout)
File "C:\ProgramData\Anaconda3\envs\hft\lib\threading.py", line 552, in wait
signaled = self._cond.wait(timeout)
File "C:\ProgramData\Anaconda3\envs\hft\lib\threading.py", line 300, in wait
gotit = waiter.acquire(True, timeout)
OverflowError: timeout value is too largeProcess finished with exit code 1
I need to use the async feature of this library, but how can I fix this issue? Please help!