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
- Creating Function to Submit Email Form f...
I'm trying to create function for Email Form Submit, I fill parameters correctly using my Resend provider, I connect it to my repository, but when I click on De...
- After migrating my self hosted from 1.7....
after i migrated successfully as i suppose from the logs. I still getting this 500 error, what was the same error when i tried to migrate from 1.7.4 to any new ...
- Increase the Limit for Querying Nested R...
I ran into problem when I upgrade my Appwrite self-hosted from 1.7.4 to 1.8.0. When I query election.position.candidates.votes, it doesn’t return any data. I fo...