[英]Error: could not handle the request with Google Cloud Function and Express
this is my code. 这是我的代码。 Why when I go to the url of my cloud function I receive this message :"Error: could not handle the request" and I didn't see "Hello World!" 为什么当我转到云函数的URL时收到以下消息:“错误:无法处理请求”,而我却没有看到“ Hello World!”。 ? ? Thanks 谢谢
exports.simple = (req,res) => {
var express = require('express');
var https = require('https');
var bodyParser = require('body-parser');
var app = express();
module.exports = app;
return app.get('/', (req, res) => res.send("Hello World!"))
.then((result) => {
console.log("DONE",result);
console.log("Delete opportunity");
})
.catch((err) => {
console.log("ERROR",err);
})
};
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.