serverless / serverless-google-cloudfunctions

Serverless Google Cloud Functions Plugin – Adds Google Cloud Functions support to the Serverless Framework
https://www.serverless.com
MIT License
271 stars 127 forks source link

Google function name not match 'handler' property #212

Closed YellyYU closed 4 years ago

YellyYU commented 4 years ago

Not sure whether this is caused by update at Google side or configurations of my own, but following the quick-start steps I observed that the function created at Google Cloud is named "my-service-dev-first" (i.e. <service-name>-dev-<handler>) instead of "first" (the handler name, which is currently assumed to be the function name at Google side).

This mismatch caused the invocation to fail with Function Not Found error:

Error --------------------------------------------------
Error: Function http in region us-central1 in project PROJECTNAME does not exist
peter254 commented 4 years ago

Same issue - it seems this was introduced with Version 3.0.0

medikoo commented 4 years ago

@bao1018 @zxhaaa6 are you aware of that issue?

medikoo commented 4 years ago

PR with a fix is welcome.

Also this project is looking for contributors and maintainers.

zxhaaa6 commented 4 years ago

@YellyYU can you please confirm the function http exists as an export in index.js?