Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aliyun oss mode RamRoleArn ignores proxy-host setting #598

Closed
dirol13 opened this issue Jan 20, 2023 · 1 comment
Closed

aliyun oss mode RamRoleArn ignores proxy-host setting #598

dirol13 opened this issue Jan 20, 2023 · 1 comment

Comments

@dirol13
Copy link

dirol13 commented Jan 20, 2023

- Command Format:

aliyun oss ls --mode RamRoleArn --proxy-host http://anyhost:8000

- Execution Command:

it does not show anything

- Output:

it keeps running without end

I am running aliyun command in a corporate network with proxy servers. I use
aliyun oss ls --mode RamRoleArn --proxy-host http://anyhost:8000

Version: 3.0.144, 3.0.132 both Windows and Linux versions
Environment variables set: http_proxy, https_proxy, HTTP_PROXY, HTTPS_PROXY

Finally if I wait long enough I get this error:
ERROR: can't get credential refresh RoleArn sts token err: Get https://sts.aliyuncs.com/*AccessKeyId=***&Action=AssumeRole&DurationSeconds=3600&Format=JSON&RoleArn=ROLE&RoleSessionName=SESSION_NAME&Signature=**&SignatureMethod=HMAC-SHA1&SignatureNonce=**&SignatureVersion=1.0&Timestamp=**&Version=**" dial tcp 47.88.128.94:443: connect: connection timed out.
I captured the traffic via Wireshark and figured out that another modes like AK, StsToken do not ignore --proxy-host setting and work fine.

@TsinghuaDream
Copy link
Contributor

Please use the latest version, this is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants