Skip to content

HTTPResponse strict attribute gone in urllib3>=2.0.0 #699

Closed
@MadameMinty

Description

  • Operating System version: Debian 11
  • Firebase SDK version: 6.1.0
  • Firebase Product: auth
  • Python version: 3.11.3
  • Pip version: 23.1.2

Steps to reproduce:

firebase-admin==6.1.0 package requires urllib3<3,>=1.21.1 and so pip installs urllib3==2.0.2, but with urllib3>=2.0.0, which removed attribute 'strict' from 'HTTPResponse' object, firebase_admin.auth.verify_id_token(token) raises an error AttributeError: 'HTTPResponse' object has no attribute 'strict'.

Relevant Code:

import firebase_admin
from firebase_admin import auth
cred = firebase_admin.credentials.Certificate(GOOGLE_APPLICATION_CREDENTIALS)
firebase_admin.initialize_app(cred)
firebase_admin.auth.verify_id_token(token)
...
File "\Lib\site-packages\cachecontrol\serialize.py", line 54, in dumps
    u"strict": response.strict,
               ^^^^^^^^^^^^^^^
AttributeError: 'HTTPResponse' object has no attribute 'strict'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions