Back

Python Appwrite Function Internal Error

  • 0
  • Functions
wkijedi
13 Oct, 2023, 12:43

I am executing a very simple hello world Python function. I have restarted my containers. The error alternates from "Error Msg: Could not resolve host: 651d27bceddca7186c6c-652937f899eca464d919" to "An internal curl error has occurred within the executor!". I have gone through all the solutions but I can't go past this. Could someone help me out here? Thanks

TL;DR
User is experiencing an internal error with their Python Appwrite function after upgrading to version 1.3.7. Another user suggests using an example function that includes the use of context. User shares a link to an example function for Python 3.10. Someone asks if the function code is working or if it regularly errors. User confirms that they are only printing "Hello World" and provides more details on the error. Other users inquire about the Appwrite version and suggest checking the logs from the executor container. User provides a screenshot of the error message and asks for assistance in resolving the issue.
D5
13 Oct, 2023, 12:47

What's your Appwrite version ?

wkijedi
13 Oct, 2023, 13:05

1.3.7

D5
13 Oct, 2023, 13:48

What do you get after running docker compose logs appwrite-executor

wkijedi
13 Oct, 2023, 13:49

Attached screenshot on the question

D5
13 Oct, 2023, 13:52

Those logs are from executor container?

D5
13 Oct, 2023, 13:52

Or from appwrite main container?

wkijedi
13 Oct, 2023, 14:00

Executor

Drake
15 Oct, 2023, 03:39

What's your function code? Does it ever work? Or does it error every now and then?

wkijedi
15 Oct, 2023, 13:47

I am in fact just printing Hello World. nothing much

Drake
15 Oct, 2023, 15:21

If that's the only thing you're doing, that won't work

Drake
15 Oct, 2023, 15:22

Appwrite functions must follow a certain format and you need to return a response

Baudouin Arbarétier
15 Oct, 2023, 16:12

Isn't this example outdated ? It doesn't use context

Baudouin Arbarétier
15 Oct, 2023, 16:13

I'm lookin for a new working function example... All my functions broke since the upgrade

Drake
15 Oct, 2023, 16:42

Yes because the original poster is on 1.3.7

Drake
15 Oct, 2023, 16:43

No need to post in other people's threads. Just wait after you've created your post

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