Function strange behavior when invoked via API gateway
The function behavior is not consistent when I invoke it via API gateway. i have function that merges pdf and writes the merged file to a ftp location. When i test the function directly ( using the mvn clean install) via the cloud shell it works . When I invoke the same command via API gateway I see the function getting called ( so the policies are good) , but the file is not getting generated in the FTP. What could be issue?
I see the MergePDF ( last line of the code) getting printed so there is no exception as well.