Stack:NextJS,Contentful + Now
概述:在getInitialProps异步函数中调用contentful的getEntries()请求。在本地环境中,一切都很完美,我接收到了这些帖子,然后成功地将它们作为道具传递到我可以呈现它们的页面。
发布:当我尝试使用Now部署时,我会得到以下错误:
错误:找不到资源。在(/zeit/31b54c53/node_modules/contentful/dist/contentful.node.js:7731:19) at /zeit/31b54c53/node_modules/contentful/dist/contentful.
我试图授予iam用户查看redshift服务器无服务器的权限,但是当我使用我的iam用户查看红移页面时,会出现以下错误:
User: arn:aws:iam::XXXXXX:user/milad is not authorized to perform: redshift-serverless:ListSnapshots because no identity-based policy allows the redshift-serverless:ListSnapshots action
User: arn:aws:iam::XXXXXX:user/milad is not authorize
当我尝试使用以下方法对服务进行package时:
SLS_DEBUG=* $(npm bin)/serverless package
serverless-framework给了我一个错误:
Error --------------------------------------------------
EISDIR: illegal operation on a directory, read
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variabl
当我尝试在AWS上部署我的服务时。它显示了环境变量中的验证错误。但是我的所有变量的格式都是正确的,因为以前它工作得很好。
An error occurred: AuthenticateUserLambdaFunction - Resource handler returned message: "1 validation error detected: Value at 'environment.variables' failed to satisfy constraint: Map
keys must satisfy constraint: [Member must
我试图使用serverless deploy在lambda上部署代码,结果出错,尝试了多个在线可用的解决方案,但没有工作。
错误-
Serverless: Packaging service...
Serverless Error ---------------------------------------
The specified bucket does not exist
Get Support --------------------------------------------
Docs: docs.serverless.com