我在.NET核心6中运行了一个Blazor项目,我正在尝试使用预览功能将我的blazor项目上传到Amazon上。
我的项目运行得很好,但是我得到了这个错误,我在上面找不到任何东西:
Initiating deployment: ASP.NET Core App to Amazon ECS using Fargate
Configuring AWS Cloud Development Kit (CDK)...
Generating AWS Cloud Development Kit (AWS CDK) deployment project
Saving AWS CDK deployment project to: C:\Users\McPkM\.aws-dotnet-deploy\Projects\dg3evyzs
CDK version 1.128.0 found in global node_modules.
Deploying AWS CDK project
⏳ Bootstrapping environment aws://152939591676/eu-west-2...
✅ Environment aws://152939591676/eu-west-2 bootstrapped (no changes).
Unhandled exception. Amazon.JSII.Runtime.JsiiException: Child process exited unexpectedly!
at Amazon.JSII.Runtime.Services.Runtime.ReadResponse()
at Amazon.JSII.Runtime.Services.Client.ReceiveResponse[TResponse]()
at Amazon.JSII.Runtime.Services.Client.Hello()
at Amazon.JSII.Runtime.Services.ServiceContainer.BuildServiceProvider(ILoggerFactory loggerFactoryOverride)
at Amazon.JSII.Runtime.Services.ServiceContainer.<>c.<.cctor>b__8_0()
at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy`1.CreateValue()
at System.Lazy`1.get_Value()
at Amazon.JSII.Runtime.Services.ServiceContainer.get_ServiceProvider()
at Amazon.JSII.Runtime.Deputy.JsiiTypeAttributeBase.Load(Assembly assembly)
at Amazon.JSII.Runtime.Deputy.JsiiTypeAttributeBase.Load(Assembly assembly)
at Amazon.JSII.Runtime.Deputy.DeputyBase..ctor(DeputyProps props)
at Constructs.Construct..ctor(DeputyProps props)
at Amazon.CDK.Construct..ctor(DeputyProps props)
at Amazon.CDK.Stage..ctor(DeputyProps props)
at Amazon.CDK.App..ctor(IAppProps props)
at Minebuilds.Program.Main(String[] args) in C:\Users\McPkM\.aws-dotnet-deploy\Projects\dg3evyzs\Program.cs:line 17
<--- Last few GCs --->
<--- JS stacktrace --->
#
# Fatal javascript OOM in GC during deserialization
#
Subprocess exited with error 3762504530
Minebuilds could not be published as ASP.NET Core App to Amazon ECS using Fargate: We had an issue deploying your application to AWS. Check the deployment output for more details.我找不到更多的部署输出。
发布于 2022-07-06 23:41:35
我在Java中遇到了类似的问题,尽管我的输出略有不同。
将npm和节点js更新为最新版本为我解决了这个问题。
https://stackoverflow.com/questions/70729621
复制相似问题