Capturing Error

#1

Is this still meant to work?

https://developer.electricimp.com/examples/crashreporter

For some reason nothing is posted to Slack for me. I can make manual calls to the Slack webhook. However the response from the async is never called. Tried changing to sync but I get this error instead: cannot suspend through native calls/metamethods

0 Likes

#2

The response to async will always be called, but if something is timing out at the remote end, it may be a long while.

Maybe PM with the URL/code you’re using so we can look?

0 Likes

#3

I’ve just been trying this out, and I’m seeing posts to Slack when I manually throw an error.

The SimpleSlack class does no error checking – have you tried logging the rsp.statuscode in the _done() function?

0 Likes