aws-solutions / centralized-logging-with-opensearch

Build your own log analytics platform on OpenSearch in 20 minutes
https://aws.amazon.com/solutions/implementations/centralized-logging-with-opensearch/
Apache License 2.0
108 stars 28 forks source link

(API): Resources for the function are being restored. #284

Open AlbertMingXu opened 6 months ago

AlbertMingXu commented 6 months ago

Describe the bug

When you haven't logged into the Console for a certain period of time and try to access the page again, you may encounter the following error message in the Console.

Resources for the function are being restored. (Service: Lambda, Status Code: 502, Request ID: xxxxx-xxx-xxxx-xxxx-xxxxxxxx)

Expected Behavior

No error response.

Current Behavior

Return errors as the following,

Resources for the function are being restored. (Service: Lambda, Status Code: 502, Request ID: xxxxx-xxx-xxxx-xxxx-xxxxxxxx)

Reproduction Steps

If you log out of the CLO Console and do not log in again within 7 days, there is a possibility of encountering this issue when you log back into the Console.

Possible Solution

No response

Additional Information/Context

No response

Solution Version

v2.1.2

AWS Region. e.g., us-east-1

us-east-1

Other information

No response

AlbertMingXu commented 6 months ago

This issue might occur due to prolonged inactivity in the Console, resulting in no API calls being made. When users log in again, it could lead to a cold start of Lambda. However, this problem does not affect user functionality. Simply refreshing the page a few times will resolve it once the Lambda functions are back to normal.