Execution log for request 410b4f79-3c8a-480e-9e29-25625f3d9784
Tue Nov 16 02:15:30 UTC 2021 : Starting execution for request: 410b4f79-3c8a-480e-9e29-25625f3d9784
Tue Nov 16 02:15:30 UTC 2021 : HTTP Method: POST, Resource Path: /resolution
Tue Nov 16 02:15:30 UTC 2021 : Method request path: {}
Tue Nov 16 02:15:30 UTC 2021 : Method request query string: {}
Tue Nov 16 02:15:30 UTC 2021 : Method request headers: {Content-Type= application/json}
Tue Nov 16 02:15:30 UTC 2021 : Method request body before transformations: {
"url":"https://aikits.demo.solutions.aws.a2z.org.cn/img/sr-5.jpg"
}
Tue Nov 16 02:15:30 UTC 2021 : Endpoint request URI: https://lambda.us-east-1.amazonaws.com/2015-03-31/functions/arn:aws:lambda:us-east-1:958422602275:function:AIKitsSuperResolutionStac-humanseglambdaapp53B7B52-GJ7ESt0qZRFk/invocations
Tue Nov 16 02:15:30 UTC 2021 : Endpoint request headers: {X-Amz-Date=20211116T021530Z, x-amzn-apigateway-api-id=0pnzq370l8, Accept=application/json, User-Agent=AmazonAPIGateway_0pnzq370l8, Host=lambda.us-east-1.amazonaws.com, X-Amz-Content-Sha256=1bdcc6bde9e33fd77f3d296ea43d47fa25b680e764ca93656c0a069cce3dad0b, X-Amzn-Trace-Id=Root=1-61931442-e702479ee55d643149b8511a, x-amzn-lambda-integration-tag=410b4f79-3c8a-480e-9e29-25625f3d9784, Authorization=*********************************************************************************************************************************************************************************************************************************************************************************************************************************************635988, X-Amz-Source-Arn=arn:aws:execute-api:us-east-1:958422602275:0pnzq370l8/test-invoke-stage/POST/resolution, X-Amz-Security-Token=IQoJb3JpZ2luX2VjEMv//////////wEaCXVzLWVhc3QtMSJGMEQCIAcmMk7QzZrMp6fIOpqhIQSluMQRyi3sO5CHQwApdtvrAiAX+u55Xg9QMxMd3LERM0Aa1v/+gIWWvrdaCK [TRUNCATED]
Tue Nov 16 02:15:30 UTC 2021 : Endpoint request body after transformations: {"resource":"/resolution","path":"/resolution","httpMethod":"POST","headers":{"Content-Type":" application/json"},"multiValueHeaders":{"Content-Type":[" application/json"]},"queryStringParameters":null,"multiValueQueryStringParameters":null,"pathParameters":null,"stageVariables":null,"requestContext":{"resourceId":"pk31mf","resourcePath":"/resolution","httpMethod":"POST","extendedRequestId":"I4AabEFooAMFTEg=","requestTime":"16/Nov/2021:02:15:30 +0000","path":"/resolution","accountId":"958422602275","protocol":"HTTP/1.1","stage":"test-invoke-stage","domainPrefix":"testPrefix","requestTimeEpoch":1637028930564,"requestId":"410b4f79-3c8a-480e-9e29-25625f3d9784","identity":{"cognitoIdentityPoolId":null,"cognitoIdentityId":null,"apiKey":"test-invoke-api-key","principalOrgId":null,"cognitoAuthenticationType":null,"userArn":"arn:aws:iam::958422602275:user/fayland","apiKeyId":"test-invoke-api-key-id","userAgent":"aws-internal/3 aws-sdk-java/1.12.76 Linux/5.4.147-83.259.amzn [TRUNCATED]
Tue Nov 16 02:15:30 UTC 2021 : Sending request to https://lambda.us-east-1.amazonaws.com/2015-03-31/functions/arn:aws:lambda:us-east-1:958422602275:function:AIKitsSuperResolutionStac-humanseglambdaapp53B7B52-GJ7ESt0qZRFk/invocations
Tue Nov 16 02:15:30 UTC 2021 : Received response. Status: 200, Integration latency: 218 ms
Tue Nov 16 02:15:30 UTC 2021 : Endpoint response headers: {Date=Tue, 16 Nov 2021 02:15:30 GMT, Content-Type=application/json, Content-Length=1278, Connection=keep-alive, x-amzn-RequestId=9f578431-af11-4687-9cfb-dc93c457120b, X-Amz-Function-Error=Unhandled, x-amzn-Remapped-Content-Length=0, X-Amz-Executed-Version=$LATEST, X-Amzn-Trace-Id=root=1-61931442-e702479ee55d643149b8511a;sampled=0}
Tue Nov 16 02:15:30 UTC 2021 : Endpoint response body before transformations: {"errorMessage": "[ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from /mnt/lambda/Real_ESRGAN_x2.onnx failed:Protobuf parsing failed.", "errorType": "InvalidProtobuf", "stackTrace": [" File \"/var/lang/lib/python3.8/imp.py\", line 234, in load_module\n return load_source(name, filename, file)\n", " File \"/var/lang/lib/python3.8/imp.py\", line 171, in load_source\n module = _load(spec)\n", " File \"<frozen importlib._bootstrap>\", line 702, in _load\n", " File \"<frozen importlib._bootstrap>\", line 671, in _load_unlocked\n", " File \"<frozen importlib._bootstrap_external>\", line 843, in exec_module\n", " File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n", " File \"/var/task/super_resolution_app.py\", line 21, in <module>\n ort_session_x2 = onnxruntime.InferenceSession(access_point + '/Real_ESRGAN_x2.onnx')\n", " File \"/opt/onnxruntime/capi/onnxruntime_inference_collection.py\", line 283, in __init__\n [TRUNCATED]
Tue Nov 16 02:15:30 UTC 2021 : Lambda execution failed with status 200 due to customer function error: [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from /mnt/lambda/Real_ESRGAN_x2.onnx failed:Protobuf parsing failed.. Lambda request id: 9f578431-af11-4687-9cfb-dc93c457120b
Tue Nov 16 02:15:30 UTC 2021 : Method completed with status: 502
just build from the template and tested in apigateway. not working. please advise