Hi community,
I am developing a printing solutions app (knowledge base) that requires converting an image S3 URL into a Base64 string.
The conversion logic works perfectly in my local development environment. However, after publishing it as a custom app, it fails during production execution. The conversion function is running inside a serverless event, and it throws the following error:
-
errorSource:
"APP" -
message:
"Error while executing the app server script." -
status:
500
It seems like an issue specific to the serverless execution environment. I suspect it might be due to network restrictions blocking the outbound S3 request, timeout limits, or how binary data/buffers are handled in this specific serverless environment compared to local Node.js.
Has anyone encountered this issue before, or does anyone know why this conversion script crashes the serverless event?
Any guidance or robust code snippets for handling S3-to-Base64 conversion in a serverless environment would be highly appreciated!
Thanks in advance!