Hi, I have built a POST ubifunction which is working well most of the time, however every now and then I get an output error “stderr: The action did not initialize or run as expected. Log data might be missing” and the result {“error”:“The action exceeded its time limits of 10000 milliseconds.”}.
The POST gets sent again ~6 seconds later with an identical payload and passes fine. Does anyone know why this could be happening?
Greetings, as the returned JSON by the function suggests, your script is taking more than 10 seconds to run the routine that you have written in your ubifunction. Keep in mind that processing time does not rely in the function itself but in the routine that you have written and external services to be consumed, so for this particular case, this is not an error.
My advise is to refactor your actual routine to check if you can optimize it, or, if you are consuming external API services, you would create a function that consumes them and then trigger another function to process data.