我做的基本完成和api.ai tutorial的對話設置的教程做一個聊天機器人,當我嘗試部署與指揮功能:GCloud錯誤:源代碼大小超過限制
gcloud beta functions deploy --stage-bucket venky-bb7c4.appspot.com --trigger-http
(其中「venky-bb7c4.appspot.com」是BUCKET_NAME) 它返回以下錯誤信息:
ERROR: (gcloud.beta.functions.deploy) OperationError: code=3, message=Source code size exceeds the limit
我已經搜查,但沒有找到任何答案,我不知道在哪裏是錯誤。 這是出現在教程中的JS文件:
/
HTTP Cloud Function.
@param {Object} req Cloud Function request context.
@param {Object} res Cloud Function response context.
*/
exports.helloHttp = function helloHttp (req, res) {
response = "This is a sample response from your webhook!" //Default response from the webhook to show it's working
res.setHeader('Content-Type', 'application/json'); //Requires application/json MIME type
res.send(JSON.stringify({ "speech": response, "displayText": response
//"speech" is the spoken version of the response, "displayText" is the visual version
}));
};
你找到一個解決方案的日誌? –