degica / barcelona

PaaS built on top of AWS
MIT License
52 stars 6 forks source link

Fix and refine exception handling #766

Closed essa closed 1 year ago

essa commented 1 year ago

We got this error after applying #763.

[ERROR] NameError: name 'ThrottlingException' is not defined
Traceback (most recent call last):
  File "/var/task/index.py", line 49, in lambda_handler
    except ThrottlingException:

This PR will fix it and add auto retry feature of boto3.

https://boto3.amazonaws.com/v1/documentation/api/latest/guide/retries.html# https://qiita.com/hayao_k/items/1f20df24927a9a7776ca

degikko commented 1 year ago

@Maduranga can you help us review this PR, please?