We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
可复现代码
from aliyunsdkcore import client from aliyunsdkcore.profile import region_provider from aliyunsdkecs.request.v20140526 import DescribeVpcsRequest # global config orId = "" region_id = '' access_key = '' access_secret = '' endpoint = '' # product config product_name = 'ECS' region_provider.modify_point(product_name, region_id, endpoint) clt = client.AcsClient(access_key, access_secret, region_id, debug=True) # setup request request = DescribeVpcsRequest.DescribeVpcsRequest() request.set_accept_format('json') request.add_header("x-acs-organizationid", orId) # get response response = clt.do_action_with_exception(request) print(response)
执行报错:
aliyunsdkcore.acs_exception.exceptions.ServerException: HTTP Status: 500 Error:SDK.UnknownServerError ServerResponseBody: {"eagleEyeTraceId":"...","asapiSuccess":false,"product":"asapi","code":"asapi.server.request.parameter.product.not.found","cost":0,"suggestion":"建议API调用方检查调用参数中是否含有必填的API所属产品参数(Product),详情可参照开发文档中ASAPI相关调用方法。","errorCode":"asapi.server.request.parameter.product.not.found","asapiVersion":"v4","message":"参数无效: 当前请求中缺少公共参数Product!","extInfo":{},"serverRole":"asapi.ApiServer#","asapiRequestId":"...","innerCall":true,"success":false,"asapiErrorMessage":"参数无效: 当前请求中缺少公共参数Product!","domain":"...","diagnose":"","api":"null:DescribeInstances:2014-05-26","asapiErrorCode":"asapi.server.request.parameter.product.not.found"} RequestID: None
手动在 aliyunsdkcore/request.py 第 320 行增加代码 self.add_query_param("product", "ecs"),就行了,
The text was updated successfully, but these errors were encountered:
专有云不在支持之列。
Sorry, something went wrong.
No branches or pull requests
可复现代码
执行报错:
手动在 aliyunsdkcore/request.py 第 320 行增加代码 self.add_query_param("product", "ecs"),就行了,
![image](https://private-user-images.githubusercontent.com/1725434/293348216-1565d5ad-a27c-448e-9dd2-6836bf380c3e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQzMTAzNDAsIm5iZiI6MTcyNDMxMDA0MCwicGF0aCI6Ii8xNzI1NDM0LzI5MzM0ODIxNi0xNTY1ZDVhZC1hMjdjLTQ0OGUtOWRkMi02ODM2YmYzODBjM2UucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjJUMDcwMDQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTBmOWViNDZiNDg3YWQ1N2Q5YThlYTJhYTM5NjhiMDk1OWFmYWQzM2EzMjJjM2ExZDJhN2U2NDM2MmZjNDQzMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.1aMQCRMenC1c9MY2sodgwIGk1_hmYmFBGPNStocel_U)
The text was updated successfully, but these errors were encountered: