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
- encrypt and decrypt buckets
I have a bucket where I switched from encryption to not encrypting files. I later realized that files already uploaded earlier stay encrypted. Now I have a buck...
- Unable to Create Storage After Upgrading...
We upgraded our Appwrite instance from version 1.8.0 to 1.9.0 and successfully ran the migration process. However, after the upgrade, we are no longer able to c...
- I can't UNPAUSE my project with the free...
I received an email notifying me that my project had been paused due to inactivity, and the email included a link to "Restore project." However, that button red...