Skip to content
Back

How to get error log from openruntime python?

  • 0
  • Self Hosted
Anthony
3 May, 2024, 16:29

Hey all. I'm running openruntime python 3.9 for local development before pushing it to the cloud. However, when my code is incorrect (missing library or something wrong such as indentation), I can still build and run the code, but when I test it with curl, not thing is returned.

I used a script from this repo: https://github.com/open-runtimes/open-runtimes/tree/main/runtimes/python-3.9 and create a main.py file as followed. As you can see, if I remove import appwrtie, the curl function works fun, but when I import appwrite (which is not installed), and run it with curl, not thing is retunred (I expect an error log)

TL;DR
Developers are having trouble getting error logs from Openruntime Python when there are issues in their code. They can still build and run the code, but testing it with curl returns nothing. One solution is to check for missing libraries or indentation errors in the code. In a specific case, removing the import of a non-installed library made the curl function work.
Anthony
3 May, 2024, 16:30
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more