When i execute the following code(NodeJS runtime), using the context.error or context.log functions to log the error, it logs an empty object instead of the actual error.
await asyncFunc()
}
catch(err) {
console.log(err)
error(err)
return res.empty()
}```
Old fashioned console.log() logs the error just fine though.
Open Runtimes tries to stringify objects but that doesn't work on errors. You should do err.toString() instead.
Thanks <:appwritefire:823999000330895380>
[SOLVED]context.error does not log the error content
Recommended threads
- AppwriteException: Route not found!
I am executing Appwrite Function from react, getting below error for fetching data from table in function. Code snippet where function throw this error: cons...
- Feedback and Deployment Challenges with ...
Hello world!, I've been developing a project using FastAPI in Python, and I was considering deploying it through Appwrite Functions. However, I encountered a f...
- Bulk feature status
Hi there, I am using version 1.7.4 self hosted and wanted to use the bulk operations in a dart function. I saw that in the dart_appwrite sdk version 16.1.0 it ...