
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
- Import "appwrite.exceptions" could not b...
Import "appwrite.exceptions" could not be resolved I tried using many versions of appwrite but this error still occuring. Please help me to fix it.
- Cannot connect to SMTP in AppWrite - set...
This used to work and then at some point it stopped. One thing that happened in that time was moving my application to Vercel. I have read on another thread t...
- [Self Hosted]
fresh instance of Appwrite - cant deploy function from local to instance ✗ Error • func2 (68134cd9002358f96e4a) • Invalid `specification` p...
