You as a sysadmin know that for sure – Lambda errors, s3 errors or timeout errors.
Your AWS sometimes drives you crazy.
Lambda generates a JSON representation of the error, when your code causes an error. This error document occurs in the invocation log. For synchronous invocations, the document appears in the output.
{
"errorType": "ReferenceError",
"errorMessage": "x is not defined",
"trace": [
"ReferenceError: x is not defined",
" at Runtime.exports.handler (/var/task/index.js:2:3)",
" at Runtime.handleOnce (/var/runtime/Runtime.js:63:25)",
" at process._tickCallback (internal/process/next_tick.js:68:7)"
]
}
Best solution:
PRTG Network Monitor combined with your CloudWatch account helps you to keep an eye on your Amazon Web Services. You can monitor and analyze all Amazon instances and additionally PRTG lets you create data linkages so that you’ll be able to identify correlations while troubleshooting.
Learn more about AWS monitoring
If your Lambda function triggers an exception, AWS Lambda recognizes the failure and serializes the exception information into JSON and returns it.
{
"errorMessage": "I failed!",
"stackTrace": [
[
"/var/task/lambda_function.py",
3,
"my_always_fails_handler",
"raise Exception('I failed!')"
]
],
"errorType": "Exception"
}
Best solution
PRTG Network Monitor combined with your CloudWatch account helps you to keep an eye on your Amazon Web Services. You can monitor and analyze all Amazon instances and additionally PRTG lets you create data linkages so that you’ll be able to identify correlations while troubleshooting.
Learn more about AWS monitoring
Lambda generates a JSON representation of the error, when your code causes an error. This error document occurs in the invocation log. For synchronous invocations, the document appears in the output.
{
"errorMessage": "no implicit conversion of String into Integer",
"errorType": "Function",
"stackTrace": [
"/var/task/function.rb:3:in `first'",
"/var/task/function.rb:3:in `handler'"
]
}
Best solution:
PRTG Network Monitor combined with your CloudWatch account helps you to keep an eye on your Amazon Web Services. You can monitor and analyze all Amazon instances and additionally PRTG lets you create data linkages so that you’ll be able to identify correlations while troubleshooting.
Learn more about AWS monitoring
If your Lambda function causes an exception, AWS Lambda recognizes the failure and serializes the exception information into JSON and returns it.
{
"errorMessage": "Name John Doe is invalid. Exception occurred...",
"errorType": "java.lang.Exception",
"stackTrace": [
"example.Hello.handler(Hello.java:9)",
"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
"sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
"java.lang.reflect.Method.invoke(Method.java:497)"
]
}
Best solution:
PRTG Network Monitor combined with your CloudWatch account helps you to keep an eye on your Amazon Web Services. You can monitor and analyze all Amazon instances and additionally PRTG lets you create data linkages so that you’ll be able to identify correlations while troubleshooting.
Learn more about AWS monitoring
You can create custom error handling to raise an exception directly from your Lambda function and handle it directly.
Best solution:
PRTG Network Monitor combined with your CloudWatch account helps you to keep an eye on your Amazon Web Services. You can monitor and analyze all Amazon instances and additionally PRTG lets you create data linkages so that you’ll be able to identify correlations while troubleshooting.
Learn more about AWS monitoring
When an exception arises in your Lambda function, Lambda will report the exception information back to you. These exceptions can occur in two different places:
The serialized exception information is returned as the payload as a modeled JSON object and given out to CloudWatch logs.
In the initializaion phase, exceptions can be thrown for invalid handler strings, a rule-breaking type or method, or any other validation method. These exceptions are of type LambdaExcpetion.
{
"errorType": "LambdaException",
"errorMessage": "Invalid lambda function handler: 'http://this.is.not.a.valid.handler/'.
The valid format is 'ASSEMBLY::TYPE::METHOD'."
}
Best solution
PRTG Network Monitor combined with your CloudWatch account helps you to keep an eye on your Amazon Web Services. You can monitor and analyze all Amazon instances and additionally PRTG lets you create data linkages so that you’ll be able to identify correlations while troubleshooting.
Learn more about AWS monitoring
When your Lambda function has a terminating error, AWS Lambda recognizes the failure, serializes the error information into JSON, and returns it.
Best solution
PRTG Network Monitor combined with your CloudWatch account helps you to keep an eye on your Amazon Web Services. You can monitor and analyze all Amazon instances and additionally PRTG lets you create data linkages so that you’ll be able to identify correlations while troubleshooting.
Learn more about AWS monitoring
List of Error Codes:
Solution Error 403 Access Denied:
Solution Error 503:
Best solution
S3 Best Practices:
PRTG Network Monitor combined with your CloudWatch account helps you to keep an eye on your Amazon Web Services. You can monitor and analyze all Amazon instances and additionally PRTG lets you create data linkages so that you’ll be able to identify correlations while troubleshooting.
Learn more about AWS monitoring
When an AWS Lambda fuction is invoked using an AWS SDK, the function times out, execution hangs, or an API action is duplicated.
These issues can arise when:
Best solution
PRTG Network Monitor combined with your CloudWatch account helps you to keep an eye on your Amazon Web Services. You can monitor and analyze all Amazon instances and additionally PRTG lets you create data linkages so that you’ll be able to identify correlations while troubleshooting.
Learn more about AWS monitoring
A Cloud IT infrastructure needs professional monitoring
For monitoring Amazon Web Services, use CloudWatch and PRTG
PRTG links CloudWatch data to monitoring data from your entire IT