Rank 1: Thread
Hello I want to send json data on python function response but after succesfully deployed the function, when I execute it, I get "Internal server error".
This is the code:
return res.json({
'message': json.dumps({"error": str(e), "data": "custom data"}),
'payload': payload,
'secretKey': secretKey,
'randomNumber': randomNumber,
'trigger': trigger
}, 500)
What's wrong with that?