Hello ,
I am working with a serverless function (pdfextractor) that is triggered by Object Upload events from Stratus. In my function logs, I consistently see errors like “Cannot read properties of undefined (reading 'bucket_name')”.
I have tried accessing the payload using both event.content.bucket_name and event.data.object.bucket_name, but neither seems to work in Production. Even though the Signal is firing, no rows are being inserted into my Data Store because the payload structure is unclear.
Could you please confirm:
What is the exact JSON structure of the Object Upload event payload in Production?
Which path should be used to reliably access bucket_name and file_path?
Is there any difference between Development and Production payload structures that I should be aware of?
This clarification will help me adjust my code so that rows are successfully inserted into the Data Store.
Thank you for your gui