-
Notifications
You must be signed in to change notification settings - Fork 127
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
Http trigger path ignored by deployment #84
Comments
Thanks for reporting @fivepointseven 👍 🤔 it looks like the
|
But isn't this just the summary that's displayed after the deployment is done? serverless-google-cloudfunctions/package/lib/compileFunctions.js Lines 43 to 48 in ccd81a5
and it seems like it's working correctly, but path is still not being set by deployment manager |
Thanks for getting back @fivepointseven 👍 🤔 So according to the The URL which is displayed after the deployment was done is wrong and displays Edit: Or is the |
@pmuens that is like the next step of my issue 😅 |
@fivepointseven thanks for getting back 👍 Right now Google will create a fully-fledged API for you. So you cannot set the
I'm not sure if I follow 😅. Could you share your My assumption is that the |
Here's serverless.yml: service: gcftest
provider:
name: google
runtime: nodejs
project: gcftestproject
credentials: ~/.gcloud/keyfile.json
plugins:
- serverless-google-cloudfunctions
package:
exclude:
- node_modules/**
- .gitignore
- .git/**
functions:
create-account:
handler: createAccount
events:
- http: create-account As you can see, the trigger is the same as handler name. Where httpTrigger is listed correctly. So the |
As it is currently, I can only create Google Functions with names matching their handlers. Example: exports.http = (request, response) => {
response.status(200).send('Hello World!')
} service: my-service
...
functions:
my-service:
handler: http
events:
- http: my-service The above will create a function named "http" and its URL: https://us-central1-PROJECT_ID.cloudfunctions.net/http While I would expect a function called "my-service" to be created with the URL: https://us-central1-PROJECT_ID.cloudfunctions.net/my-service I think the plugin needs to address this in another way, as in not relying on httpsTrigger, because it clearly has no effect in the function URL. The function name itself does. I've been manually creating Google Functions and trying to switch to Serverless for deploys, but this issue is preventing me to. |
Any updates on this? I'm encountering the same issue. |
I'm having the same problem. In fact, for me I can't seem to rename my function from
If I change it to |
Me too, this issue is so annoyed. Please advise/help. :( |
Same problem here !! any news ? or workaround ? |
Same issue here. Only Seeing how this has been open for nearly two years and no progress, I guess we can't expect a solution anytime soon. |
Annoying workaround:
|
Managed to find a solution to this, that allows for custom naming: This Serverless.yml worked for me 👍🏼:Things to take note of:Naming convention has to be all lowercase WITHOUT SYMBOLS OR UPPERCASE. Else you will get the error of ✅Result:Deployment Manager web console shows this:Storage web console shows this:Cloudfunction web console shows this:Lastly:I'm using ExpressJS for my routing within the cloudfunction. If you guys are wondering how, there are a few articles online that can be searched up: https://codeburst.io/express-js-on-cloud-functions-for-firebase-86ed26f9144c |
Any solution? |
I have a following function config in
serverless.yml
Yet when the deployment runs, I get:
In Deployment Manager dashboard the
httpsTrigger
value is set tourl: create-account
. What might be the issue?The text was updated successfully, but these errors were encountered: