修改解析时候提示没有RecordId ,我打印$reques,里面是设置了的,而且确定RecordId 是对的。
在获取解析记录列表,也遇到类似的问题,提示Fatal error[font="]: Uncaught ServerException: MissingDomainName DomainName is mandatory for this action. HTTP Status: 400 RequestID: 6FC674CD-6598-483A-A29C-202EAA4C7041 in
[font="]此处也确定写了domainname
[font="]
[font="]
以下是修改解析时print_r($request)的结果
CommonRpcAcsRequest Object | |
( | |
[dateTimeFormat:RpcAcsRequest:private] => Y-m-d\TH:i:s\Z | |
[domainParameters:RpcAcsRequest:private] => Array | |
( | |
) | |
[version:protected] => 2015-01-09 | |
[product:protected] => Alidns | |
[actionName:protected] => UpdateDomainRecord | |
[regionId:protected] => | |
[acceptFormat:protected] => JSON | |
[method:protected] => POST | |
[protocolType:protected] => http | |
[content:protected] => | |
[queryParameters:protected] => Array | |
( | |
) | |
[headers:protected] => Array | |
( | |
[x-sdk-client] => php/2.0.0 | |
) | |
[locationServiceCode:protected] => | |
[locationEndpointType:protected] => openAPI | |
[putQueryParameter] => Array | |
( | |
[RR] => bb | |
[Type] => A | |
[Value] => 171.214.252.128 | |
[RecordId] => 16791699583034368 | |
) | |
) | |
以下是对应的报错 | |
<b>Fatal error</b>: Uncaught ServerException: MissingRecordId RecordId is mandatory for this action. HTTP Status: 400 RequestID: 7DAA94EF-3CA6-4A41-9137-C0AE2B8A860C in E:\phpStudy\PHPTutorial\web_sp\aliyun-php-sdk-core\DefaultAcsClient.php:138 | |
Stack trace: | |
#0 E:\phpStudy\PHPTutorial\web_sp\aliyun-php-sdk-core\DefaultAcsClient.php(46): DefaultAcsClient->buildApiException(Object(stdClass), 400) | |
#1 E:\phpStudy\PHPTutorial\web_sp\api_edit.php(26): DefaultAcsClient->getAcsResponse(Object(CommonRpcAcsRequest)) | |
#2 {main} | |
thrown in <b>E:\phpStudy\PHPTutorial\web_sp\aliyun-php-sdk-core\DefaultAcsClient.php</b> on line <b>138</b><br /> | |
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。