Couchers-org / couchers

The next-generation couch surfing platform. Free forever. Community‑led. Non‑profit. Modern. Chuck us a star :)
https://couchers.org
MIT License
359 stars 76 forks source link

AttributeError: phone #4454

Closed sentry-io[bot] closed 2 weeks ago

sentry-io[bot] commented 2 weeks ago

Sentry Issue: BACKEND-95

AttributeError: phone
  File "couchers/jobs/worker.py", line 67, in process_job
    ret = func(message_type.FromString(job.payload))
  File "couchers/notifications/background.py", line 168, in handle_notification
    _send_push_notification(user, notification)
  File "couchers/notifications/background.py", line 111, in _send_push_notification
    rendered = render_notification(user, notification)
  File "couchers/notifications/render.py", line 207, in render_notification
    message = f"Your phone was successfully verified as <b>{v2phone(data.phone)}</b> on Couchers.org."

phone
aapeliv commented 2 weeks ago

https://github.com/Couchers-org/couchers/blob/7ce2b83efd0b0465eb3889c4b194a3431dc99d4f/app/proto/notification_data.proto#L63-L69

https://github.com/Couchers-org/couchers/blob/7ce2b83efd0b0465eb3889c4b194a3431dc99d4f/app/backend/src/couchers/models.py#L2223-L2224

https://github.com/Couchers-org/couchers/blob/7ce2b83efd0b0465eb3889c4b194a3431dc99d4f/app/backend/src/couchers/servicers/account.py#L293-L296

https://github.com/Couchers-org/couchers/blob/7ce2b83efd0b0465eb3889c4b194a3431dc99d4f/app/backend/src/couchers/servicers/account.py#L342-L345