I believe that while the team worked on adding type definitions in app.py file they missed default value for current_request attribute in Chalice class. You can find this change here.
By default this value was None. And after this change different issues are faced, e.g. in our case these were issues with authorizers for endpoints - endpoint started return 500 errors instead of 403.
Setting default parameter as None will fix the issues related to this attribute:
current_request: Optional[Request] = None
Could somebody from the team to take a look at this?
Hey everyone!
I believe that while the team worked on adding type definitions in
app.py
file they missed default value forcurrent_request
attribute inChalice
class. You can find this change here. By default this value wasNone
. And after this change different issues are faced, e.g. in our case these were issues with authorizers for endpoints - endpoint started return 500 errors instead of 403.Setting default parameter as
None
will fix the issues related to this attribute:Could somebody from the team to take a look at this?
Regards, Anastasiia