olucurious / PyFCM

Python client for FCM - Firebase Cloud Messaging (Android, iOS and Web)
http://olucurious.github.io/PyFCM/
MIT License
803 stars 206 forks source link

Error: type object 'Retry' has no attribute 'DEFAULT_ALLOWED_METHODS' #282

Closed mawkee closed 3 years ago

mawkee commented 3 years ago

This happens on 1.5.0, and started today. The relevant code is pretty simple and shouldn't be problematic, in theory:

fcm = pyfcm.FCMNotification(api_key=conf["google"]["fcm"]["key"])

Downgrading to 1.4.9 or 1.4.7 solves the problem

olucurious commented 3 years ago

bug reverted

mawkee commented 3 years ago

It looks like the same thing is happening once again on 1.5.2 (reverting to 1.5.1 solved the problem)

olucurious commented 3 years ago

@mawkee can you please try the develop branch and confirm if it works You should also check this thread https://github.com/olucurious/PyFCM/pull/280#issuecomment-865897247 for an ongoing conversation about it

mawkee commented 3 years ago

@olucurious I saw the proposed fix and I tried manually upgrading urllib3 to 1.26.0+, and that solved the problem. As far as I was able to test (can't test the whole implementation since my setup relies on pypi) things are looking good.

olucurious commented 3 years ago

Just made a new PyPi release

demola-baby2body commented 2 years ago

Hi, Have same issue on 1.5.4. Using urllib3==1.26.6. Have downgraded to 1.5.1 to clear the error.