CiscoDevNet / python-viptela

Cisco Viptela vManage Python CLI/SDK
GNU General Public License v3.0
96 stars 64 forks source link

http_methods.py: timeout value is not configurable - http calls are failing if they take more than 10 seconds #152

Open robertdemeyer opened 2 years ago

robertdemeyer commented 2 years ago

Hello Cisco!

I have the problem that the http call to get all vmanage lists takes longer than 10 seconds. Even though I am providing a timeout value increase (to 30 seconds) in the auth call the other api calls are not affected at all. Seems like the timeout is only limited to the auth.

I´ve patched the file "http_methods.py" in order to load the data: STANDARD_TIMEOUT = 30

Could you be so kind and: 1) Increase the STANDARD_TIMEOUT value? 2) Or make the timeout configurable.

br,