#Every function execution is failing
38 messages · Page 1 of 1 (latest)
This happen for both scheduled trigger as well as custom trigger.
I added mutliple logs throughout the main funtion to get context of where the execution is reaching, but, no logs are getting printed also.
What's your code?
And was the function created before or after the upgrade?
not sure of any upgrade, but it was created last week, it worked okay, but was changing some code now, since then its continuously failing.
Today i deleted the function and re-created new one thinking some network issue, internal to the system, but even that did not help, still getting the same error.
Code is Python
selected runtime is python 3.9
Maybe the change in code added something that breaks it
hmm added pandas to it for some calculation, that increased the build size from 7 mb to 44 mb, but the code works fine, locally, when i remove the context and test it
You had to do something special to get pandas to install right?
added pandas to requirement.txt
Testing the code locally is almost useless
sure any pointers how i can debug this?
I'm exaggerating...I always highly suggest creating the function incrementally and testing it incrementally in Appwrite because if you deploy to Appwrite at the end and you run into an error like this, you have no idea where to start troubleshooting
And what about the build command?
kept the same, that was part of the python starter function pip install -r requirements.txt
i used that as template
That's weird....I'm surprised that built successfully...
why?
Maybe you can start from a starter template and add code incrementally testing in Appwrite as you go
It didn't work before
no the build is working fine, the issue is when i hit the curl
its the execution that is failing
with that particular error
What do you mean when YOU hit the curl?
after i hit this, and when i check the errors for the execution
Anyways, I still recommend this
You can also share your code too and I can scan it quickly.
You can also try to increase the function timeout
did that, maxed it to 900 sec, still the same 😦
And the execution fails after how long?
after that much time
Interesting
You should probably not pass exceptions directly into context.err(). Maybe convert to string first
okay got it, let me try that, will update
Technically, it is possible for there to be an infinite loop with your whiles
This is still probably the best approach