
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?

is this similar to your issue? https://github.com/appwrite/appwrite/issues/2940 There was a few reports related to using python on here
Also can you share function logs maybe the support team can better assist


yes

What's your full code?
Recommended threads
- deno 2 Cloud random errors
we have big problems with the functions. although we do not change anything in the function, we have the following random behaviour: - no scope permissions erro...
- Functions not work on Server only Localh...
Hi, I successfully upgraded from 1.4 to 1.7, but I'm having a problem. The functions no longer work with the settings I had. I assume some changes were made. It...
- Console Login after upgrade
Hi, running a small instance self hosted, upgraded from 1.6.0 to 1.74 this morning before spotting the migration guide... When trying to login to the console n...
