Closed tvu002 closed 4 months ago
Why do you call directly Guzzle? After $feedDocumentInfo = createFeedDocument I do something like this instead:
$feedDocumentId = $feedDocumentInfo->getFeedDocumentId();
// Upload feed contents to document
$docToUpload = new SellingPartnerApi\Document($feedDocumentInfo, $feedType);
$docToUpload->upload($xml);
// Ask Amazon to queue the feed
$createFeedSpecification = new SellingPartnerApi\Model\FeedsV20210630\CreateFeedSpecification (array ('feed_type'=>$feedType['name'], 'marketplace_ids'=>array($a->prefs['amazon-MARKETPLACE_ID']), 'input_feed_document_id'=>$feedDocumentId));
$sent = $feedsApi->createFeed($createFeedSpecification);
return $sent;
In order to to log the trace. We are using a different logging logic in our project. With that I was able to narrow down the issue with the upload to <Code>NotImplemented</Code>
Additional information since I saw you code: The upload works for all Feed types which requires a xml file. Currently only the pdf files are not working.
I work in the same company as @tvu002, we could fix the issue, there were three problems:
metadata:
prefix to the feed specificationsapplication/json
even though we upload a PDFSo this issue can be closed.
@tvu002, are you the same person who emailed me about this issue? Just want to confirm that you're all set, if that's in fact the case.
Problem description:
Error:
Current I try to upload my invoice for the UPLOAD_VAT_INVOICE feed. But after the
createFeedDocument
call I can't upload the file into to the provided place. I get this response:Code
Does someone knows the issue? I am still using v5.