Can't read property 0 editing Google spreadsheet only when deployed

I am getting the following error but only when my system is deployed and running automatically. When I use the test feature it runs fine.

The thing is “get an email, run it through gpt, output the result to a Google sheet”

TypeError

Cannot read property ‘0’ of undefined (add_single_row)

details

Message:Cannot read property ‘0’ of undefinedTotal Duration:7,126 msCompute Time:6,833 msExecution Start:2023-01-20T00:56:03.967ZExecution End:2023-01-20T00:56:11.093ZSteps Executed:2 / 2Invocations:1Version:77 (d_YGsPGaNL)

trigger

ExportsInputsLogs

steps.trigger{2}

context{15}

event{3}

body{4}

headers{23}

send_prompt

CONFIGURATION

Successfully sent prompt with id cmpl-6***“”"

ExportsInputsLogsDetails

steps.send_prompt{2}

$return_value{6}

choices[1]

created:1674176169

id:cmpl-6aZzNe**************HCguAz

model:text-davinci-003

object:text_completion

usage{3}

$summarySuccessfully sent prompt with id *******

add_single_row

CONFIGURATION

TypeError

Cannot read property ‘0’ of undefined