Problems Downloading Zip Files

Post Reply
stargazerllc
Newbie
Posts: 12
Joined: Mon Jan 25, 2021 8:24 pm

Problems Downloading Zip Files

Post 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.
freddyp
Advanced member
Posts: 1008
Joined: Thu Feb 09, 2012 3:53 pm

Re: Problems Downloading Zip Files

Post 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
stargazerllc
Newbie
Posts: 12
Joined: Mon Jan 25, 2021 8:24 pm

Re: Problems Downloading Zip Files

Post 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!
Post Reply