sonnenglas / amazon-mws-laravel

A library to connect to Amazon's MWS web services in an object oriented manner
Apache License 2.0
64 stars 73 forks source link

Feed Submit _POST_ORDER_FULFILLMENT_DATA_ #25

Open developer-gurpreet opened 5 years ago

developer-gurpreet commented 5 years ago

It was working fine before but for last few days it starts throw this error : "InvalidParameterValue Invalid query string provided - Keys may not contain <"

developer-gurpreet commented 5 years ago

I found the solution The issue is Content Type, Using this package, it send "Content-Type" as "text/xml" But Amazon update API end point and now we have to send 'Content-Type: application/xml"'

So please update in AmazonFeed.php file this function protected function genHeader() { $return[0] = "Content-MD5:" . $this->feedMD5; return $return; }

TO protected function genHeader() { $return[0] = "Content-MD5:" . $this->feedMD5; $return[1] = "Content-Type: application/xml"; return $return; }

dbarrington commented 5 years ago

@branall1

Thank you, saved me a late night. This resolved an issue that came up for me today. Reference: https://sellercentral.amazon.com/forums/t/unable-to-submit-feeds-badrequest-on-submitfeed-all-of-the-sudden-keys-may-not-contain-lt/454820/25