It's expected to not get any details when I request the state of a function execution?
I have create a function that throws an error:
export default async ({ req, res, log, error }) => {
throw new Error("HELLO_WORLD");
};
the I execute it asynchronously, and I get the status with getExecution.
However I don't see any error details:
{
"trigger": "http",
"status": "failed",
"requestMethod": "POST",
"requestPath": "/",
"requestHeaders": [],
"responseStatusCode": 500,
"responseBody": "",
"logs": "",
"errors": "",
"duration": 0.0054829120635986
}
Is there any way to get that information? (HELLO_WORD)
res.send("HELLO_WORLD") doesn't get any information as well
Why I need this?
As function have more chance to get timeout when the execution is synchronous, I'm trying to get a similar behavior with async, but error handling isn't easy without getting something more specific than error 500 or failed
it's supposed to...i think this is a bug
Recommended threads
- router_deployment_not_found
I updated my function a few times and now i am getting the error: router_deployment_not_found I even reverted back to my original code but i am still getting th...
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- [Beginner] CLI --queries Syntax Error & ...
Hi everyone! I am a beginner with Appwrite and trying to use the CLI, but I'm stuck with a syntax error. Any guidance would be greatly appreciated! 🙏 **Enviro...