Open fhubaer opened 2 years ago
jsb_http_proxy
jsb_https_proxy
See the proxy selection code in
try: proxies = get_proxies(opts, app_configs) if (HTTP_PROXY) and (len(proxies) == 0): proxies["http"] = HTTP_PROXY if (HTTPS_PROXY) and (len(proxies) == 0): proxies["https"] = HTTPS_PROXY if (len(proxies) == 0): proxies = None except Exception as proxy_error: proxies = None
get_proxies(...)
None
len(proxies)
TypeError
jsb_*
Description
Describe How to Reproduce
jsb_http_proxy
andjsb_https_proxy
keys, not globally.Possible cause
See the proxy selection code in
get_proxies(...)
returnsNone
in my scenario,len(proxies)
raisesTypeError
and thejsb_*
values are never set.jsb_*
values when there are no global proxies configured? Shouldn't it be the opposite?