Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cryptic error - "Unknown application error occurred" #14

Open
Vadorequest opened this issue Apr 13, 2019 · 0 comments
Open

Cryptic error - "Unknown application error occurred" #14

Vadorequest opened this issue Apr 13, 2019 · 0 comments

Comments

@Vadorequest
Copy link

Here are the logs of my app when I try to reach my lambda:

REPORT RequestId: 1274b44b-b585-4a59-89a4-22e86460a5eb  Duration: 6866.84 ms    Billed Duration: 6900 ms        Memory Size: 512 MB     Max Memory Used: 162 MB 

Unknown application error occurred
Error
START RequestId: 48a19299-ac57-4f05-b747-2cd3118a4851 Version: $LATEST
END RequestId: 48a19299-ac57-4f05-b747-2cd3118a4851
REPORT RequestId: 48a19299-ac57-4f05-b747-2cd3118a4851  Duration: 6835.13 ms    Billed Duration: 6900 ms        Memory Size: 512 MB     Max Memory Used: 161 MB 

Unknown application error occurred
Error
START RequestId: e94accec-fb7d-407b-8dca-07b1c8ec7cec Version: $LATEST
END RequestId: e94accec-fb7d-407b-8dca-07b1c8ec7cec
REPORT RequestId: e94accec-fb7d-407b-8dca-07b1c8ec7cec  Duration: 6816.46 ms    Billed Duration: 6900 ms        Memory Size: 512 MB     Max Memory Used: 162 MB 

Unknown application error occurred
Error
START RequestId: 48f6b0a5-b9e3-44a6-b510-d19d476d694a Version: $LATEST

It happened after I changed the --target option of one of my scripts in my serverless.yml:

  webpack:
    packager: 'yarn'
    packagerOptions:
      # XXX Necessary to properly package the "node-v48-linux-x64-glibc" binary used by "dialogflow", because AWS Lambda runs under Linux
      # See https://github.com/serverless-heaven/serverless-webpack/issues/342#issuecomment-383248835
      scripts:
        - npm rebuild grpc --target=8.1.0 --target_arch=x64 --target_platform=linux --target_libc=glibc

This script tries to rebuild the grpc binary using a node target of 8.1.0 while running under a 10.15.3 nodejs version. It's perfectly normal that it fails, but the error message should be more understandable.

I'm using https://github.com/serverless-heaven/serverless-webpack#custom-scripts to execute the scripts.

I have no idea how it can be improved, but I'd suggest to try to pinpoint the cause of the error in such use case, because if anyone migrate from an official runtime to this custom runtime and encounters this error they'll have a very hard time figuring out the root cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant