Skip to content
Back

unable to have feedback about what happen in my function (logs with python)

  • 0
  • Functions
4lexTristan
1 Sep, 2023, 15:38

I am trying to use python 3.9 as runtime in my functions, however very few exemple works and when it fails, I don't have feedback in logs. I have only Internal Runtime Error (fig.1). If I read logs of appwrite-executor, I see that some works and others don't (fig.2). In order to print logs in the appwrite web interface, what should I do ? Documentation is talking about 'context' var (here :https://appwrite.io/docs/functions-develop) but I never succeed to make it works. If I put some 'print', I have nothing.

It is two days I try to make functions works. I am quite confused.

Thank you in advance

TL;DR
The user is unable to receive feedback from their function logs in Python 3.9 with Appwrite version 1.4. They are experiencing an Internal Runtime Error and have tried using the 'context' variable to print logs but it doesn't work. They are seeking guidance on how to print logs in the Appwrite web interface.
Drake
1 Sep, 2023, 15:42

what version of appwrite?

4lexTristan
1 Sep, 2023, 15:52

according to my docker-compose, appwrtie version 1.3.4

Drake
1 Sep, 2023, 16:07

what's your function code and how did you deploy it?

4lexTristan
1 Sep, 2023, 16:10

I deploy it with 'appwrite deploy function'

4lexTristan
1 Sep, 2023, 16:11

for instance this code does not work: Internal runtine error

4lexTristan
1 Sep, 2023, 16:14

however, this one seems to run in the appwrite web interface, I have the response.

Drake
1 Sep, 2023, 16:16

this is the code for appwrite version 1.4

Drake
1 Sep, 2023, 16:16

yes, this is correct for appwrite 1.3

4lexTristan
1 Sep, 2023, 16:53

Good to know that. Thank you. It would be nice to mention it in the tutorial .

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