我有一个dockerfile和一个docker-组合文件,用于启动一个节点无服务器容器。
直到今天,当我尝试向serverless.yaml文件中添加一个新端点时,它一直运行得很好。
我停止了容器以再次启动它,并且我得到了一个Java enoent派生错误。
我尝试将更改还原到无服务器文件,将更改还原到节点应用程序的主js文件和所有其他更改,尝试重新创建容器,清理所有现有的映像和我所能想到的任何东西,尝试启动容器并始终得到相同的错误:
Error: spawn java ENOENT
dock | at _errnoException (util.js:1022:11)
dock
我想知道如何才能强制我的本地无服务器部署模仿我将其部署到AWS时发生的情况。 这是我的无服务器yaml文件: service: payment # NOTE: update this with your service name
# You can pin your service to only deploy with a specific Serverless version
# Check out our docs for more details
# frameworkVersion: "=X.X.X"
environment:
SLS_DEBUG: "*&
按照示例here,代码似乎挂起了通过gRPC连接到Google的https。 同样的代码也适用于App Engine Go1.11和App Engine Flex。这是我的Dockerfile # Use the offical Golang image to create a build artifact.
# This is based on Debian and sets the GOPATH to /go.
# https://hub.docker.com/_/golang
FROM golang:1.12 as builder
# Copy local code to the c
我试图使用以下命令测试无服务器的lambda函数
命令
serverless invoke local -f send --log --stage test
错误
TypeError: chalk(...).dim is not a function
整个堆栈跟踪:
Type Error ---------------------------------------------
TypeError: chalk(...).dim is not a function
at /snapshot/serverless/lib/Serverless.js:83:47
at
我正在尝试将我的无服务器nodejs graphql api转换为使用typescript,但是serverless抛出一个错误,指出graphql处理程序不是一个函数。 错误消息: Error: Serverless-offline: handler for 'hello' is not a function
at Object.createHandler (/home/savnik/serverless-webpack-typescript-apollo/node_modules/serverless-offline/src/functionHelper.js:2
在发出serverless deploy --region eu-central-1时,我会得到错误
Type Error ---------------------------------------------
Cannot read property 'Properties' of undefined
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
此错误仅在包含以下内容后才开始
plugins:
- serv
我在运行我的第一个基于AWS Lambda的无服务器项目时遇到了问题。我正在尝试使用本地主机上的SAM CLI运行API,但仍收到 Error: AspNetCoreFunction failed to build: COPY failed: file not found in build context or excluded by .dockerignore: stat bin/Release/lambda-publish: file does not exist 在执行时 sam build --template .\serverless.template 来自我的Catalog.AP
我正在尝试使用自定义域来部署基本的无服务器快速api示例- 。它使用HTTP Api而不是旧的REST网关。域已成功设置,证书已到位等,但当我运行serverless deploy时,它会引发一个错误:
Error: Unable to setup base domain mappings for mycustom.domain.name
添加SLS_DEBUG显示:
Service Information
-------------------
service: my-service-name
stage: staging
region: us-east-1
stack: my-servic