Response
{
"statusCode": 404,
"body": "Cannot find a directory associated with the api-key fqMK2lk2deNyzzzfj0DR3qlwIyKswO13KNVadsX600. Possible reasons are :\n(1) Wrong api-key is sent, please double check the api-key you sent to this request(2) Index is building , please add sleep(t) to your code to wait till the index is built, waiting 30 sec should solve the problem\nIf the problem still exists please send us an e-mail to to xx@yy.com with a copy of this message, make sure request-id is in the email"
}
Test Event Name apigateway2
Response { "statusCode": 404, "body": "Cannot find a directory associated with the api-key fqMK2lk2deNyzzzfj0DR3qlwIyKswO13KNVadsX600. Possible reasons are :\n(1) Wrong api-key is sent, please double check the api-key you sent to this request(2) Index is building , please add sleep(t) to your code to wait till the index is built, waiting 30 sec should solve the problem\nIf the problem still exists please send us an e-mail to to xx@yy.com with a copy of this message, make sure request-id is in the email" }
Function Logs START RequestId: c98afa44-5530-48e4-a362-ffcd9f22b845 Version: $LATEST [INFO] 2023-07-01T17:10:07.239Z c98afa44-5530-48e4-a362-ffcd9f22b845 Received input event : {'body': 'eyJ0ZXN0IjoiYm9keSJ9', 'resource': '/{proxy+}', 'path': '/path/to/resource', 'httpMethod': 'POST', 'isBase64Encoded': True, 'queryStringParameters': {'question': 'How was the india passenger market?', 'filename': 'HY_2021_e.pdf'}, 'multiValueQueryStringParameters': {'foo': ['bar']}, 'pathParameters': {'proxy': '/path/to/resource'}, 'stageVariables': {'baz': 'qux'}, 'headers': {'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8', 'Accept-Encoding': 'gzip, deflate, sdch', 'Accept-Language': 'en-US,en;q=0.8', 'Cache-Control': 'max-age=0', 'CloudFront-Forwarded-Proto': 'https', 'CloudFront-Is-Desktop-Viewer': 'true', 'CloudFront-Is-Mobile-Viewer': 'false', 'CloudFront-Is-SmartTV-Viewer': 'false', 'CloudFront-Is-Tablet-Viewer': 'false', 'CloudFront-Viewer-Country': 'US', 'Host': '1234567890.execute-api.us-east-1.amazonaws.com', 'Upgrade-Insecure-Requests': '1', 'User-Agent': 'Custom User Agent String', 'Via': '1.1 08f323deadbeefa7af34d5feb414ce27.cloudfront.net (CloudFront)', 'X-Amz-Cf-Id': 'cDehVQoZnx43VYQb9j2-nvCh-9z396Uhbp027Y2JvkCPNLmGJHqlaA==', 'X-Forwarded-For': '127.0.0.1, 127.0.0.2', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'x-api-key': 'fqMK2lk2deNyzzzfj0DR3qlwIyKswO13KNVadsX600'}, 'multiValueHeaders': {'Accept': ['text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8'], 'Accept-Encoding': ['gzip, deflate, sdch'], 'Accept-Language': ['en-US,en;q=0.8'], 'Cache-Control': ['max-age=0'], 'CloudFront-Forwarded-Proto': ['https'], 'CloudFront-Is-Desktop-Viewer': ['true'], 'CloudFront-Is-Mobile-Viewer': ['false'], 'CloudFront-Is-SmartTV-Viewer': ['false'], 'CloudFront-Is-Tablet-Viewer': ['false'], 'CloudFront-Viewer-Country': ['US'], 'Host': ['0123456789.execute-api.us-east-1.amazonaws.com'], 'Upgrade-Insecure-Requests': ['1'], 'User-Agent': ['Custom User Agent String'], 'Via': ['1.1 08f323deadbeefa7af34d5feb414ce27.cloudfront.net (CloudFront)'], 'X-Amz-Cf-Id': ['cDehVQoZnx43VYQb9j2-nvCh-9z396Uhbp027Y2JvkCPNLmGJHqlaA=='], 'X-Forwarded-For': ['127.0.0.1, 127.0.0.2'], 'X-Forwarded-Port': ['443'], 'X-Forwarded-Proto': ['https']}, 'requestContext': {'accountId': '123456789012', 'resourceId': '123456', 'stage': 'prod', 'requestId': 'c6af9ac6-7b61-11e6-9a41-93e8deadbeef', 'requestTime': '09/Apr/2015:12:34:56 +0000', 'requestTimeEpoch': 1428582896000, 'identity': {'cognitoIdentityPoolId': None, 'accountId': None, 'cognitoIdentityId': None, 'caller': None, 'accessKey': None, 'sourceIp': '127.0.0.1', 'cognitoAuthenticationType': None, 'cognitoAuthenticationProvider': None, 'userArn': None, 'userAgent': 'Custom User Agent String', 'user': None}, 'path': '/prod/path/to/resource', 'resourcePath': '/{proxy+}', 'httpMethod': 'POST', 'apiId': '1234567890', 'protocol': 'HTTP/1.1'}} [INFO] 2023-07-01T17:10:07.239Z c98afa44-5530-48e4-a362-ffcd9f22b845 Checking input [INFO] 2023-07-01T17:10:07.239Z c98afa44-5530-48e4-a362-ffcd9f22b845 Input event check finished sucessfully [INFO] 2023-07-01T17:10:07.239Z c98afa44-5530-48e4-a362-ffcd9f22b845 Getting index files : s3://llm-index/fqMK2lk2deNyzzzfj0DR3qlwIyKswO13KNVadsX600/HY_2021_e.faiss and .pkl [INFO] 2023-07-01T17:10:07.255Z c98afa44-5530-48e4-a362-ffcd9f22b845 Found credentials in environment variables. [INFO] 2023-07-01T17:10:07.466Z c98afa44-5530-48e4-a362-ffcd9f22b845 Checking if api-key = fqMK2lk2deNyzzzfj0DR3qlwIyKswO13KNVadsX600 deos exist under the index bucket llm-index [ERROR] 2023-07-01T17:10:07.520Z c98afa44-5530-48e4-a362-ffcd9f22b845 Error in request-id c6af9ac6-7b61-11e6-9a41-93e8deadbeef => api-key fqMK2lk2deNyzzzfj0DR3qlwIyKswO13KNVadsX600 doesnot exist as an s3-key (folder) under the index-bucket llm-index END RequestId: c98afa44-5530-48e4-a362-ffcd9f22b845 REPORT RequestId: c98afa44-5530-48e4-a362-ffcd9f22b845 Duration: 285.69 ms Billed Duration: 286 ms Memory Size: 3008 MB Max Memory Used: 186 MB Init Duration: 2442.14 ms
Request ID c98afa44-5530-48e4-a362-ffcd9f22b845