Closed Olamyy closed 4 years ago
sorry for the slow response here - looks like the code that's causing the issue is https://github.com/aws/sagemaker-inference-toolkit/blob/master/src/sagemaker_inference/transformer.py#L90. It's not clear why the stacktrace was swallowed in the first place, so I think we should be able to add it back.
I've opened a PR to try and address this: https://github.com/aws/sagemaker-inference-toolkit/pull/51
PR has been merged. the change should be present during the next release of the PyTorch/MXNet inference images
Describe the bug When a code related error comes up during model invocation, the stack trace of the error is not logged on cloudwatch. The exception from sagemaker points to a cloudwatch url alright but the cloudwatch logs in the attached url does not show the trace of the error. My current work around is to manually catch and print the stack trace.:
To reproduce
Expected behavior The stack trace should be logged in cloudwatch.
Screenshots or logs If applicable, add screenshots or logs to help explain your problem. When you go to the attached URL, the stack trace is not found there.
System information A description of your system. Please provide: