You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This produces unexpected use of (for example) HTTP_PROXY.
Please take the argument "trust_env" away from here:
classRESTClientObjectAsync(object):
"""NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """# ...# https pool manager_client_session_type=kwargs.get('client_session_type', aiohttp.ClientSession)
_client_session_kwargs=kwargs.get('client_session_kwargs', {})
self.pool_manager=_client_session_type(
connector=connector,
trust_env=True,
timeout=timeout,
trace_configs=[trace_config] ifconfiguration.debugelseNone,
**_client_session_kwargs
)
The problem is, that with the current configuration, it produces an exception: TypeError: aiohttp.client.ClientSession() got multiple values for keyword argument 'trust_env'.
The text was updated successfully, but these errors were encountered:
antonioromero
changed the title
Stop hardcoded trust_env value for RestClientObjectAsync
Remove hardcoded trust_env value for RestClientObjectAsync
Feb 22, 2023
We have encountered a PermissionError while using InfluxDBClientAsync within our Django app, which is running within a Docker container.
The root cause of the issue is due to the trust_env setting, which forces the library to search for a proxy. This value is hardcoded and cannot be passed in client_session_kwargs. Attempting to pass this value results in a TypeError: aiohttp.client.ClientSession() got multiple values for keyword argument 'trust_env'.
As a temporary solution, we have applied a patch by setting client.api_client.rest_client.pool_manager._trust_env =False.
It would be nice if we could pass the trust_env value within client_session_kwargs.
I have prepared a fixed version within #583. Development version of the client will be available after #583 acceptance, stable version in regular release cycle.
Uh oh!
There was an error while loading. Please reload this page.
This produces unexpected use of (for example)
HTTP_PROXY
.Please take the argument "trust_env" away from here:
Code from:
influxdb-client-python/influxdb_client/_async/rest.py
Line 129 in fab076c
It could already be accesible via
client_session_kwargs
:The problem is, that with the current configuration, it produces an exception:
TypeError: aiohttp.client.ClientSession() got multiple values for keyword argument 'trust_env'
.The text was updated successfully, but these errors were encountered: