Python-docs-samples: Google Cloud Function"finished with status: 'crash'"

Created on 7 Jun 2020  路  1Comment  路  Source: GoogleCloudPlatform/python-docs-samples

In which file did you encounter the issue?

Google Cloud Functions for python

Did you change the file? If so, how?

No

Describe the issue

I have been deploying a few functions, and some of them crashes without any message of the crash I have been able to debug the issue adding manually a try/except but in some instances it does not show not even the stacktrace only Function execution took 1002 ms, finished with status: 'crash'

The very first time that this happened to me i asked a Question in StackOverflow, now I'm trying to move a file from one bucket to another using:

        try:
            # gif_blob = storage_client.get_bucket(MAIN_BUCKET).get_blob(file_name)
            # gif_blob = storage_client.get_bucket(MAIN_BUCKET).blob(file_name)
            gif_blob = storage_client.bucket(MAIN_BUCKET).blob(file_name)
            gif_blob.upload_from_filename(temp_filename_in)
        except:
            [logging.error(line) for stack in traceback.format_exception(*sys.exc_info()) for line in stack.splitlines()]

But the issue is that not even the try/catch tells me where my error is, therefore I can not debug my functions properly.

triage me

>All comments

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

Was this page helpful?
0 / 5 - 0 ratings