At least in your response, I see this:
ReferenceError: fetch is not defined
Are you using node-fetch
? If yes, have you imported it correctly? If not, are you using Node 18 inside Functions? If not, you might want to add an environment variable named AWS_LAMBDA_JS_RUNTIME
to nodejs18.x
.