Unable to download zoom recording video on ec2 server running on ubuntu

Unable to download whole zoom recording on ec2 ubuntu instance

**I have written a automation script in javascript which uses axios npm package to access zoom api to get recordings of a session and then downloads it on computer where it is running. I am facing a weird issue. On my computer which runs on windows the script is able to download whole zoom recording video but on the server aws ec2 instance which is running a ubuntu os it is only able to download video for last 10 seconds. Than it fails to download whole video without giving any error message output. Can you please suggest me what might be causing the issue . **

Zoom session have a length of 2 hours but the video being downloaded are only of last 10 seconds of entire recording.

I have no error message to show here since it is not giving me error message