[英]Unexpected list element termination(Sender/MalformedInput) Amazon mws ListOrders API
I am using Meteor to access Amazon mws API's and i am trying to access my Orders so i am trying to hit ListOrderAPI with following parameters:-我正在使用 Meteor 访问 Amazon mws API 并且我正在尝试访问我的订单,因此我正在尝试使用以下参数点击 ListOrderAPI:-
app.getPendingOrdersAPI({'CreatedAfter':startDate,'MarketplaceId':'A21TJRUUN4KGV'},function(err,res){
if(err){
console.log("error is...");
console.log(err);
}
})
As you can seen i am passing createdAfter parameter and marketplaceId parameters both are required so i pass both of them .正如你所看到的,我传递了 createdAfter 参数和marketplaceId 参数,所以我传递了它们。 I am using Orders API version我正在使用订单 API 版本
/Orders/2013-09-01 But as i try to get Orders its throw an error that is as follows:- /Orders/2013-09-01 但是当我尝试获取 Orders 时,它会抛出如下错误:-
<ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
I20160706-15:40:07.238(5.5)? <Error>
I20160706-15:40:07.238(5.5)? <Type>Sender</Type>
I20160706-15:40:07.239(5.5)? <Code>MalformedInput</Code>
I20160706-15:40:07.239(5.5)? <Message>Unexpected list element termination</Message>
I20160706-15:40:07.239(5.5)? </Error>
I20160706-15:40:07.240(5.5)? <RequestId>06d7977b-99be-4fe6-8e34-f2dbd6df9263</RequestId>
I20160706-15:40:07.240(5.5)? </ErrorResponse>
ie Unexpected list element termination(Sender/MalformedInput As i google this so i found same on amazon seller forums but there was they are discussing about the php code and as solution they said change即意外的列表元素终止(发件人/MalformedInput因为我在谷歌上搜索这个,所以我在亚马逊卖家论坛上发现了同样的问题,但他们正在讨论 php 代码,作为解决方案,他们说要改变
rawurlencode($params$key)); rawurlencode($params$key));
to到
rawurlencode($params[$key])); rawurlencode($params[$key]));
but i am running my project on Node.js (Meteor) so i am not able to figure it out.但我在 Node.js (Meteor) 上运行我的项目,所以我无法弄清楚。 Please let me know when this error is comes and what is the main cause for this .请让我知道此错误何时出现以及导致此错误的主要原因是什么。 I am missing some parameter or passing parameter as wrong please help me out.我丢失了一些参数或传递的参数错误,请帮助我。
Thanks谢谢
尝试用 MarketplaceId.Id.1 替换 MarketplaceId
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.