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
Describe the bug
I notice the document metioned Proxy Network in User Settings & Enviroment Variables, but I can't find this setting in source codes anywhere. So is there some thing wrong in the document or the codes?
To Reproduce
Refer to other enviroment variables, I think HTTP_PROXY or HTTPS_PROXY should found in openbb_core/env.py. However it isn't.
Then I check the session definition file openbb_core/utils/client.py, there is a class named ClientSession, but it don't use proxies parameter durning initialization.
Then I check the request tool function amake_request, make_request in file openbb_core/provider/utils/helpers.py, it also doesn't use proxies parameter.
So, is HTTP_PROXY and HTTPS_PROXY deprecated?
Screenshots
Document
openbb_core/env.py File
openbb_core/utils/client.py
openbb_core/provider/utils/helpers.py
Desktop (please complete the following information):
OS: Windows 11
Python version 3.11.9
Additional context
Thanks for answering my problem.
The text was updated successfully, but these errors were encountered:
Thanks for the report. The issue arises from using both requests and aiohttp, and only requests reads the environment variables by default. I have added the necessary setting in the aiohttp.ClientSession initialization (#6640) to allow for the same behavior from all three HTTP IO helper functions - make_request, amake_request, and amake_requests - which should cover all HTTP requests throughout the library.
Note that the vast majority of requests will be HTTPS and not HTTP, but for full coverage define both addresses.
Describe the bug
I notice the document metioned Proxy Network in User Settings & Enviroment Variables, but I can't find this setting in source codes anywhere. So is there some thing wrong in the document or the codes?
To Reproduce
HTTP_PROXY
orHTTPS_PROXY
should found inopenbb_core/env.py
. However it isn't.openbb_core/utils/client.py
, there is a class namedClientSession
, but it don't useproxies
parameter durning initialization.amake_request
,make_request
in fileopenbb_core/provider/utils/helpers.py
, it also doesn't useproxies
parameter.So, is
HTTP_PROXY
andHTTPS_PROXY
deprecated?Screenshots
Document
openbb_core/env.py
Fileopenbb_core/utils/client.py
openbb_core/provider/utils/helpers.py
Desktop (please complete the following information):
Additional context
Thanks for answering my problem.
The text was updated successfully, but these errors were encountered: