
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
- Creating Push Notification Results in Fa...
When creating a push notification using the Python API, I get this error for the status of my message. I call it using basically this: ```python def main(conte...
- Functions in Golang - I need help
Hi guys! I am struggling to deploy a rather simple golang function. The deployment log details are very sparse: "failed error code: 524 " or: "Cannot access ...
- Issue creating team membership with USER...
Log time ago it worked without any issue when I made a demo app but now it is not working in cloud function. code ```await awTeams ?.createMembe...
