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
Summary
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
Moderator
Oct 13, 2023, 12:47
What's your Appwrite version ?
wkijedi
Rank 1: Thread
Oct 13, 2023, 13:05
1.3.7
D5
Moderator
Oct 13, 2023, 13:48
What do you get after running docker compose logs appwrite-executor
wkijedi
Rank 1: Thread
Oct 13, 2023, 13:49
Attached screenshot on the question
D5
Moderator
Oct 13, 2023, 13:52
Those logs are from executor container?
D5
Moderator
Oct 13, 2023, 13:52
Or from appwrite main container?
wkijedi
Rank 1: Thread
Oct 13, 2023, 14:00
Executor
Drake
Oct 15, 2023, 03:39
What's your function code? Does it ever work? Or does it error every now and then?
wkijedi
Rank 1: Thread
Oct 15, 2023, 13:47
I am in fact just printing Hello World. nothing much
Drake
Oct 15, 2023, 15:21
If that's the only thing you're doing, that won't work
Drake
Oct 15, 2023, 15:22
Appwrite functions must follow a certain format and you need to return a response