Skip to content

Error TypeError: object of type 'NoneType' has no len() thrown when I have the following header set 'Access-Control-Allow-Origin': None #1791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jasmarc opened this issue Dec 20, 2022 · 4 comments

Comments

@jasmarc
Copy link

jasmarc commented Dec 20, 2022

I'm seeing TypeError: object of type 'NoneType' has no len() when I have the following header set:

'Access-Control-Allow-Origin': None

Originally posted by @jasmarc in #1455 (comment)

@boring-cyborg
Copy link

boring-cyborg bot commented Dec 20, 2022

Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our AWS Lambda Powertools Discord: Invite link

@jasmarc jasmarc changed the title @heitorlessa I'm seeing TypeError: object of type 'NoneType' has no len() when I have the following header set: Error TypeError: object of type 'NoneType' has no len() thrown when I have the following header set 'Access-Control-Allow-Origin': None Dec 20, 2022
@github-actions github-actions bot added the pending-release Fix or implementation already in dev waiting to be released label Dec 21, 2022
@leandrodamascena
Copy link
Contributor

Hello @jasmarc! We merged the PR with the code to fix this issue and tomorrow we will release a new version in production. Thanks!

@jasmarc
Copy link
Author

jasmarc commented Dec 21, 2022

Awesome! Thank you :)

@github-actions
Copy link
Contributor

This is now released under 2.5.0 version!

@github-actions github-actions bot removed the pending-release Fix or implementation already in dev waiting to be released label Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants