-
Notifications
You must be signed in to change notification settings - Fork 118
Deploying Cloud Function gives error: MissingTargetException #157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, can you share your |
I assume by signature of the function you mean the main function? I am using console GUI to deploy and not thru command line.
|
I created a new Python 3.8 function by pasting that into the UI at https://console.cloud.google.com/functions/add, changing the entrypoint from Any other details you can give us? Have you set any environment variables or otherwise changed the function configuration? Can you go to the "Source" tab for the function and select "Download Zip" and upload it here? |
@di I see, strange. I tried the same with only the code I shared and got same error. Here are the details:
Zip file: |
Just to be clear, this error is happening on deployment, when you create the function, not when you call your function, correct? Unfortunately I haven't been able to reproduce this, but any more details you can provide would be helpful. |
correct, what more details I can provide that'd be helpful? |
Instead of using the "inline editor" for source code, can you try a new function with the "ZIP upload" option and upload the zip file you included in #157 (comment)? Can you confirm that the "Entry point" field says It should look like this (you'll need to specify or create a GCS bucket for the 'stage bucket'): |
So, deploying through zip upload worked but another weird thing is under Authentication, it should say allow unautheicated bc that's what I selected but it is blank. Also, tried using inline editor making sure the entry point is main without any whitespace character/s and it still failed. |
Reading through this thread... it seems like we've figured out a way to deploy successfully. Not sure if there is an issue with the Functions Framework. I'm going to close this, but if the issue is still persisting, please open a new issue and link this issue in the description. |
Hi there,
Deploying google cloud function with python3.8 runtime gives error:
Stacktrace
There is a main function within main.py that I am trying to deploy.
The text was updated successfully, but these errors were encountered: