HTTPResponse strict attribute gone in urllib3>=2.0.0
envgap__firebase__firebase-admin-python-699
01 / FAILURE SIGNATURE
As reported upstream
AttributeError: 'HTTPResponse' object has no attribute 'strict'
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
8727e91739f2d04f2417705e098331362b8ac5c8- Manifest
requirements.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
firebase/firebase-admin-python #699 · read the original issue
* 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:
```python
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'
```
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]