Focused crawls are collections of frequently-updated webcrawl data from narrow (as opposed to broad or wide) web crawls, often focused on a single domain or subdomain.
set lowercase proxy environment variable, eg. export http_proxy='127.0.0.1:8888'
run st2 --debug action list
Expected Results
proxy info should be printed
Actual Results
proxy info did not show, value of HTTP_PROXY is empty.
Thanks!
The text was updated successfully, but these errors were encountered:
wfgydbu
changed the title
should check both 'http_proxy' and 'HTTP_PROXY' when get proxy var from environment variables
should check both 'http_proxy' and 'HTTP_PROXY' when get proxy info from environment variables
Feb 5, 2021
SUMMARY
I just faced an embarrassed problem that command
st2 action listkeeps return 503.I tried
st2 --debug action listand the result in lineHTTP_PROXY(uppercase) was empty. This mislead me that the proxy info was set(which is not).I finally found that the root cause is a lowercase
http_proxyenv variable was set in the system.So I think it maybe more friendly to check both 'http_proxy' and 'HTTP_PROXY' to get proxy info when using st2 command with
--debugoption.related code:
st2/st2client/st2client/base.py
Line 404 in 5c4e5f8
STACKSTORM VERSION
3.3
OS, environment, install method
centos 7.6, custom install
Steps to reproduce the problem
export http_proxy='127.0.0.1:8888'st2 --debug action listExpected Results
proxy info should be printed
Actual Results
proxy info did not show, value of HTTP_PROXY is empty.
Thanks!
The text was updated successfully, but these errors were encountered: