Skip to content

AWS lambda support #699

@raban33

Description

@raban33

Dear Author - I was able to get the project compiled and deployed on AWS lambda by adding LambdaEntryPoint.cs and Serverless template. However I am not sure what version of nodejs does the .NET Core 2.1 runtime image uses and I do get the below mentioned error. Any way to upgrade nodejs runtime while using .net core 2.1?

Error: "An unhandled exception occurred while processing the request.
NodeInvocationException: Prerendering failed because of error: SyntaxError: Unexpected token ,
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at findBootModule (/tmp/bi4o3anb.zu5:111:17)
at findRenderToStringFunc (/tmp/bi4o3anb.zu5:116:28)
at renderToStringImpl (/tmp/bi4o3anb.zu5:75:51)
at /tmp/xwnkguqh.5ct:114:19
Current directory is: /var/task
Microsoft.AspNetCore.NodeServices.HostingModels.HttpNodeInstance.InvokeExportAsync(NodeInvocationInfo invocationInfo, CancellationToken cancellationToken)"

here is the Url: https://b617h1huz0.execute-api.us-west-1.amazonaws.com/Prod

any insight into this would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions