forecho / amazon-mws

Interaction with the Amazon api for vendors called MWS
23 stars 15 forks source link

Fix GetReport bug. #1

Closed arolando closed 4 years ago

arolando commented 5 years ago

Fixes this error when getting a report. Fatal error: Uncaught Exception: Key ReportRequestIdList.Id.1[0] must be all numbers if it starts with an integer in /vendor/mcs/amazon-mws/src/MWSClient.php:1441 Stack trace:

0 /vendor/mcs/amazon-mws/src/MWSClient.php(1041): MCS\MWSClient->request(Array, Array)

1 /vendor/mcs/amazon-mws/src/MWSClient.php(1006): MCS\MWSClient->GetReportRequestStatus(Array)

2 /scripts/amazon/amazon.class.php(184): MCS\MWSClient->GetReport(Array)

5 {main}

thrown in /vendor/mcs/amazon-mws/src/MWSClient.php on line 1441