Page 1 of 1

Problems Downloading Zip Files

Posted: Sat Apr 10, 2021 1:17 am
by stargazerllc
Has anyone had any issues downloading zip files using the normal node.js request packages (node-fetch, axios etc.) ?

I have a node script that has a part to download a zip file. It works in local env and independent of the switch ecosystem but when I move it into a script file the download is always corrupt. I dont have the same problem with .pdfs that come from the same endpoint though.

Re: Problems Downloading Zip Files

Posted: Mon Apr 12, 2021 8:16 am
by freddyp
There is not much to go by and although the fact that it works for PDF files and not for ZIP files pleads against it, but the first thing that jumps to mind is this: viewtopic.php?f=26&t=3959

Re: Problems Downloading Zip Files

Posted: Wed Apr 21, 2021 12:16 am
by stargazerllc
Ended up being the way the Zip file was created on our servers. Switch is on a windows VM and my dev env is a MAC. The windows issue made me think it was a switch problem.

Thanks for the input!