I was trying setting value of backoff_factor in python code using environment variable.
After that i am trying to call backoff_factor from my crateDB code and it is throwing the following error: ValueError: Timeout value connect was backoff_factor, but it must be an int, float or None.
I wanted the retry interval between retries to connect to database.
Please refer below links for the same:
I am setting export 'backoff_factor'=0.1
here: https://github.com/smartsdk/ngsi-timeseries-api/blob/master/setup_dev_env.sh
Using backoff_factor
in crate.py
file in my source code using os module: https://github.com/smartsdk/ngsi-timeseries-api/blob/dc565af24b303a94f7c298b2567e62487088de3b/src/translators/crate.py#L64
def setup(self):
environ.get('backoff_factor')
url = "{}:{}".format(self.host, self.port)
self.conn = client.connect([url],'backoff_factor')
self.cursor = self.conn.cursor()
I also tried upgrading urllib3 and request version but not worked out. Any help will be appreciable.Thanks