Skip to content

SLS Invoke Not working with GCP #214

@yashsemwal

Description

@yashsemwal

Hi,

I just started off on GCP+Serverless combination. Have a sample service deployed. However, after deploying when I invoke sls invoke -f first, I get the following error
(hobbizzenv) yash@yash-Inspiron-5558:~/yash/myservice$ sls invoke -f first

Error --------------------------------------------------

Error: Function http in region us-central1 in project projectid does not exist
at Gaxios._request (/home/yash/yash/myservice/node_modules/gaxios/src/gaxios.ts:109:15)
at
at process._tickDomainCallback (internal/process/next_tick.js:228:7)

 For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com

Your Environment Information ---------------------------
Operating System: linux
Node Version: 8.10.0
Framework Version: 1.68.0
Plugin Version: 3.6.8
SDK Version: 2.3.0
Components Version: 2.30.2

Serverless.yml (the default one is also attached here).
serverless.txt

I am able to invoke the http end point from the web after providing relevant permissions also. However, sls invoke still does not work.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions