Hi, i’m trying to receive order reports from the amazon Selling Partner API but those are Gzip compressed and i can’t get the decompression node to work. Does anyone have experience with Amazon order reports and how to decompress them?
The general workflow around posting report requests, getting their status and downloading them works.
The problem only occurs when a gzip compressionAlgorithm is used.
What is the error message (if any)?
There is no real error. The output is just crypted.
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
I can’t realy share the nodes as those contain sensitive data.
Hi,
the file extension is there but its wrong. (Screenshot attached)
I already tried to force switch it to .gz with mime-type gzip/application with an additional edit fields node but that didn’t help either.
Hi again,
thanks for the link!
i added a slightly edited code node and now it seems to work:
const output = ;
for (const item of $input.all()) {
item.binary.data.fileExtension = ‘gz’;
output.push(item);
}
return output;