Invalid data input when doing POST for product image.

AQMAQM Member Posts: 11


I have code which works on my development machine, but not on the production server. I can't figure out why. The error I get is too cryptic.

{"error":{"code":400,"method":"CREATE","request":"\/nl\/products\/128766768\/images.json","message":"Invalid data input."}}

I checked the requests which seems fine. Contents of data array in attachment.

I decoded this with an online tool, the image works fine. You can try it out here:

I am using the seoshop/seoshop-php package as a client like this:  $this->client->productsImages->create($productId, $data);

It works locally, not on production. Any ideas what the problem could be?


Sign In or Register to comment.