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
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- How to use Sites on selfhosted appwrite
whenever I try to create a site even with template it says 404 nginx error