Closed beam36 closed 4 years ago
@beam36 can you please confirm the function http exists as an export in index.js?
@zxhaaa6 Yes, it does. Here's my index.js.
'use strict';
exports.http = (request, response) => {
response.status(200).send('Hello World!');
};
exports.event = (event, callback) => {
callback();
};
I have the same problem. I noticed I was able to invoke my function (after deployment) by changing its name in the serverless.yml file:
service: hello-serverless
# ...
functions:
hello-serverless-dev-hello: # instead of hello
handler: hello-serverless-dev-hello # instead of hello
events:
- http: path
Obviously not a true solution since I cannot redeploy my function without rolling back the function name. But I guess it shows the issue is with the name of the function called when using serverless invoke
…
Bug Report
Description
When following the cloud tutorial https://serverless.com/framework/docs/providers/google/guide/quick-start/, everything works fine until 'invoke' step. I got the below error
I've checked that the cloud function got deployed and can be triggered via a browser. Here is serverless.yml
Here's an error after turning on SLS_DEBUG
What did I do wrong?