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 » Sat Apr 10, 2021 1:17 am

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: 600
Joined: Thu Feb 09, 2012 3:53 pm

Re: Problems Downloading Zip Files

Post by freddyp » Mon Apr 12, 2021 8:16 am

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 » Wed Apr 21, 2021 12:16 am

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