Skip to content

Function "1-first" doesn't exist in this Service #83

Open
@emmeblm

Description

@emmeblm

When I try to deploy a function called "first" (this is how it is called in the serveless.yml file), the deployment goes well but after seeing the message: Serverless: Done... I get the following error:

SLS_DEBUG=* serverless deploy --environment dev01 --project <MyProjectID>
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Compiling function "first"...
Serverless: Creating deployment...
Serverless: Checking deployment create progress...
..
Serverless: Done...
Serverless: Uploading artifacts...
Serverless: Artifacts successfully uploaded...
Serverless: Updating deployment...
Serverless: Checking deployment update progress...
........
Serverless: Done...

  Serverless Error ---------------------------------------

  Function "1-first" doesn't exist in this Service

  Stack Trace --------------------------------------------

ServerlessError: Function "1-first" doesn't exist in this Service
    at Service.getFunction (/Users/xxx/.nvm/versions/node/v6.11.1/lib/node_modules/serverless/lib/classes/Service.js:195:11)
    at _.forEach (/Users/xxx/node_modules/serverless-google-cloudfunctions/info/lib/displayServiceInfo.js:43:53)
    at arrayEach (/Users/xxx/node_modules/lodash/lodash.js:537:11)
    at Function.forEach (/Users/xxx/node_modules/lodash/lodash.js:9359:14)
    at GoogleInfo.gatherData (/Users/xxx/node_modules/serverless-google-cloudfunctions/info/lib/displayServiceInfo.js:39:7)
From previous event:
    at PluginManager.invoke (/Users/xxx/.nvm/versions/node/v6.11.1/lib/node_modules/serverless/lib/classes/PluginManager.js:242:22)
    at PluginManager.run (/Users/xxx/.nvm/versions/node/v6.11.1/lib/node_modules/serverless/lib/classes/PluginManager.js:261:17)
    at variables.populateService.then (/Users/xxx/.nvm/versions/node/v6.11.1/lib/node_modules/serverless/lib/Serverless.js:99:33)
    at runCallback (timers.js:672:20)
    at tryOnImmediate (timers.js:645:5)
    at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
    at Serverless.run (/Users/xxx/.nvm/versions/node/v6.11.1/lib/node_modules/serverless/lib/Serverless.js:86:74)
    at serverless.init.then (/Users/xxx/.nvm/versions/node/v6.11.1/lib/node_modules/serverless/bin/serverless:39:50)

I can see that somewhere, it's adding a "1-" string to the name. Not sure if it's the plugin code or not.

Any ideas?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions