cloud functions error while deploting

When I tried to deploy my cloud functions from my local system I am getting this error
This is my first time using cloud functions so I don’t know how to solve this.

{

errorGroups: [1]
insertId: “656bb91f000772fb6cbc26f4”

labels: {3}
logName: “projects/tuitdiario/logs/cloudfunctions.googleapis.com%2Fcloud-functions”
receiveTimestamp: “2023-12-02T23:09:19.581923395Z”

resource: {2}
severity: “ERROR”
textPayload: “Traceback (most recent call last): File “/layers/google.python.pip/pip/lib/python3.12/site-packages/flask/app.py”, line 2529, in wsgi_app response = self.full_dispatch_request()”
timestamp: “2023-12-02T23:09:19.488187Z”
trace: “projects/tuitdiario/traces/1ecde6c926ddf0722308dacb7af269f6”

Hello @vamosmilrayitas !

Welcome to the Google Cloud Community!

You can try the following troubleshooting options:

  1. Make sure that you are correctly deploying your Cloud Function. See Deploying from your local machine. You can deploy through gcloud or console.
  2. Debug your Cloud Function by checking out the logs. You can view runtime logs, or you can choose a function then click “view logs”
  3. If the above options don’t work, you can contact Google Cloud Support to further look into your case. Let me know if it helped, thanks!
1 Like