Open 20k-ultra opened 4 years ago
Pretty certain the issue is related to cold starts. I was able to mitigate the problem by using an uptime monitor setup to invoke the lambda function every 10 minutes since lambda functions will deprovision after 15 minutes of inactivity. After adding this I have never see the lambda function return an empty response.
Ideally the real problem is identified but will leave this system for now.
I've noticed sometimes when calling the lambda endpoint after awhile the endpoint will return an empty response? It's really bizarre since refreshing will return the badge correctly.
Not sure if it's browser cache related?