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
{{ message }}
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
<ErrorResponsexmlns="http://mws.amazonaws.com/FulfillmentInboundShipment/2010-10-01/">
<Error>
<Type>Sender</Type>
<Code>ValidationError</Code>
<Message>1 validation error detected: Value null at 'asinList' failed to satisfy constraint: Member must not be null</Message>
</Error>
<RequestId>4db4ed4f-5f20-4449-ad8a-c9ef35395ade</RequestId>
</ErrorResponse>
The issue seems to be that the underlying http client is using POST instead of GET for such endpoints.
I copied the above function's source code from lib\sections\fulfillment-inbound-shipment\fulfillment-inbound-shipment.js then changed the this.http.request param from POST to GET and ran it separately:
const[response,meta]=awaithttp.request('GET',{// was 'POST'resource: 'FulfillmentInboundShipment',version: '2010-10-01',action: 'GetPrepInstructionsForASIN',parameters: {'ASINList.Id': ['B07P7X96Z9'],ShipToCountryCode: 'US',},});console.log(response);
Hi there,
First I appreciate your contribution and how easy this library is to use.
I want to point out at two issues with the following functions inside
FulfillmentInboundShipment
class:Example of code to reproduce the problem:
Response I get from Amazon:
The issue seems to be that the underlying http client is using
POST
instead ofGET
for such endpoints.I copied the above function's source code from
lib\sections\fulfillment-inbound-shipment\fulfillment-inbound-shipment.js
then changed thethis.http.request
param fromPOST
toGET
and ran it separately:I got the right success response:
I stumbled upon these two while using your module, but this could be the case for more GET methods.
Cheers,
Deni
The text was updated successfully, but these errors were encountered: