node.js - Unexpected list element termination(Sender/MalformedInput) Amazon mws ListOrders API -
i using meteor access amazon mws api's , trying access orders trying hit listorderapi following parameters:-
app.getpendingordersapi({'createdafter':startdate,'marketplaceid':'a21tjruun4kgv'},function(err,res){ if(err){ console.log("error is..."); console.log(err); } })
as can seen passing createdafter parameter , marketplaceid parameters both required pass both of them . using orders api version
/orders/2013-09-01 try orders throw error follows:-
<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>
i.e unexpected list element termination(sender/malformedinput google found same on amazon seller forums there discussing php code , solution said change
rawurlencode($params$key));
to
rawurlencode($params[$key]));
but running project on node.js (meteor) not able figure out. please let me know when error comes , main cause . missing parameter or passing parameter wrong please me out.
thanks
Comments
Post a Comment