aws / aws/chalice

Error deploying with blueprint authorizer

Open
#1,759 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

Hello,

We are specifying an authorizer on a blueprint and on deploy we receive the following error:

chalice/deploy/swagger.py", line 86, in _generate_security_from_auth_obj
'name': auth_config.header,
AttributeError: 'NoneType' object has no attribute 'header'

Still investigating the issue so will provide more info or a PR later. Just wanted to fill the issue in case I forget.

Thanks.

Contributor guide

Open the contributing guide

Research direction

Start in chalice/deploy/swagger.py at _generate_security_from_auth_obj and reproduce deployment of a blueprint that specifies an authorizer. Trace why the authorizer configuration is None; the issue is done when that deployment completes without the reported AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
api, backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.