
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
- Best Practice for Monitoring document ch...
Just wanted to ask about the best-practice for keeping track of changes of a document. E.g. a document is a blog post and users can "like" it. Currently I am sa...
- All function executions fail after 1 suc...
Follow up of https://discord.com/channels/564160730845151244/1401970848772132945 But to summarise: It seems that for some reason I can run a function on a dep...
- Does Python ML runtime support ultralyti...
Tried to push a function that performs yolo v8 detection on images in bucket. The deployment runs for 15 mins and fails. What am I doing wrong?
