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
- Redis with user/pass doesn't work NO_AUT...
When trying to externalize my redis to a valkey server, i saw the user/pass doesn't work. After looking the appwrite code, i saw some of the init does not pass...
- Export, Import or Migration giving this ...
As you can see in yhe screenshot i am not able to export any data or export the data from tables. Also it is affecting the migration from appwrite to appwrite h...
- Timed out waiting for runtime error
execution id 6a3e0791978712d81ee0 im having issue with appwrite function runtime performance. even after 4gbram and cpu same function sometimes completes in a...