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
Type of Demand:
Could you add error message or debug message when EcsRamRole is incorrect?
Detailed Description:
When there is a typo in ram_role_name, every command (even aliyun configure itself) would fail. The output is very confusing and doesn't give a clue. I also tried to add DEBUG=sdk and it just doesn't help. Here's the output:
[root@iZ2zehua0su******tozx2Z ~]# DEBUG=sdk aliyun ecs DescribeRegions
resolve endpoint with {"Domain":"","Product":"Ecs","RegionId":"cn-beijing","LocationProduct":"ecs","LocationEndpointType":"openAPI"}
ecs-cn-hangzhou.aliyuncs.com by resolver(local regional resolver)
ERROR: SDK.ServerError
ErrorCode:
Recommend:
RequestId:
Message: <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>404 - Not Found</title>
</head>
<body>
<h1>404 - Not Found</h1>
</body>
</html>
RespHeaders: map[]
Design:
After a long time of research, I realized this 404 message was about fetching STS token credentials. If such error happens, the message should indicate the error was with the EcsRamRole (at least with authentication).
The text was updated successfully, but these errors were encountered:
Xun66
changed the title
Add error message when EcsRamRole is incorrect
Improve error message when EcsRamRole is incorrect
Oct 22, 2022
Could you add error message or debug message when EcsRamRole is incorrect?
When there is a typo in
ram_role_name
, every command (evenaliyun configure
itself) would fail. The output is very confusing and doesn't give a clue. I also tried to add DEBUG=sdk and it just doesn't help. Here's the output:After a long time of research, I realized this 404 message was about fetching STS token credentials. If such error happens, the message should indicate the error was with the
EcsRamRole
(at least with authentication).The text was updated successfully, but these errors were encountered: