matrix-org / sygnal

Sygnal: reference Push Gateway for Matrix
Apache License 2.0
153 stars 139 forks source link

FCM v1 Upgrade - 'NoneType' object has no attribute 'items' #368

Closed bluepen50 closed 3 months ago

bluepen50 commented 3 months ago

Running the latest version of Synapse (1.104.0) and Sygnal (0.14.0) and getting the following error:

 File "/usr/local/lib/python3.10/site-packages/sygnal/gcmpushkin.py", line 673, in _build_data
    for attr, value in data["content"].items():
AttributeError: 'NoneType' object has no attribute 'items'

This is from trying to upgrade to use the new V1 Firebase tokens- have updated the config so that is contains the following:

api_version: v1
project_id : id
service_account_file : filepath.json

What might be causing this issue?

devonh commented 3 months ago

This was fixed in #362 I can make a new release with the fix.

devonh commented 3 months ago

release 0.14.1 fixes this issue