EACCES: permission denied, open './test.jpg'

I am using AWS EC2 for hosting my backend

I have stored by backend code on - /home/bitnami/stack/parse/cloud

and in config.json( /home/bitnami/stack/parse/config.json) I have given the route while which is in my backend code, and that backend code calls puppeteer to store a ss, but I am unable to save the SS as it is showing Error: EACCES: permission denied, open ‘./test.jpg’. Can you help, what shall I do over here?

Could you share the code that you are using to save this file?