1
Visual Studioテンプレートを使用してAWS LambaでLamba関数を使用しようとするとエラーが発生します。私がlambaにデプロイし、私の関数をテストしようとすると、私は以下のエラーを受け取ります。私はプロジェクトについて何も変えず、与えられたとおりに使っています。AWS Lamba Serverless .Net C#Appエラー
私は問題が何であるか把握しようとしていますが、それはできません。これは本当にLambaとServerless Architectureについて初めて学んだ時です。何か案は?
START RequestId: 65fd2b6c-f52e-11e6-ae87-4f4e1852036a Version: $LATEST
Incoming requests to [Information] Microsoft.AspNetCore.Hosting.Internal.WebHost: Request starting https://apigateway--
Unknown error responding to request: NullReferenceException:
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.AspNetCore.Routing.Internal.PathTokenizer.get_Count()
at Microsoft.AspNetCore.Routing.Tree.TreeRouter.TreeEnumerator.MoveNext()
at Microsoft.AspNetCore.Routing.Tree.TreeRouter.<RouteAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Routing.RouteCollection.<RouteAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.<Invoke>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction.<ProcessRequest>d__15.MoveNext()
NullReferenceException:
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.AspNetCore.Routing.Internal.PathTokenizer.get_Count()
at Microsoft.AspNetCore.Routing.Tree.TreeRouter.TreeEnumerator.MoveNext()
at Microsoft.AspNetCore.Routing.Tree.TreeRouter.<RouteAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Routing.RouteCollection.<RouteAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.<Invoke>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction.<ProcessRequest>d__15.MoveNext()
[Information] Microsoft.AspNetCore.Hosting.Internal.WebHost: Request finished in 4680.1609ms 0
END RequestId: 65fd2b6c-f52e-11e6-ae87-4f4e1852036a
REPORT RequestId: 65fd2b6c-f52e-11e6-ae87-4f4e1852036a Duration: 7974.44 ms Billed Duration: 8000 ms Memory Size: 128 MB Max Memory Used: 46 MB
プロジェクトのどこにでも「https:// apigateway - 」が表示されますか?そのURLにhttpリクエストを作成しようとしているようです。 – doorstuck