Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you see the stack trace of an uncaught exception in Google Cloud Functions?

I have defined a python function in Google Cloud Functions, which I expect to fail, below:

def write(event, context):
    raise NotImplementedError()

Now I want to look at the stack trace of this function so I can debug my function. In the documentation it states:

Uncaught exceptions produced by your function will appear in Stackdriver Error Reporting.

however I can't seem to find this stack trace anywhere. I've tried looking at the logs (it just tells me it crashed with no trace) and I've tried looking at the Stackdriver Error Reporting page I can't find it anywhere. Where can I access the uncaught error logs?

Picture of GCF test response for reference.

Thanks for any help!

like image 453
K.L.Miller Avatar asked Jun 13 '20 08:06

K.L.Miller


1 Answers

This is a known issue with the Python runtime that is in the process of being resolved: https://issuetracker.google.com/issues/155215191

like image 89
Dustin Ingram Avatar answered Oct 21 '22 05:10

Dustin Ingram