synshop / ShopIdentifyer

SYN Shop Identity Management System
GNU General Public License v3.0
2 stars 1 forks source link

App 500s when viewing /admin/onboard #87

Closed munroebot closed 1 year ago

munroebot commented 1 year ago

This is due to non-JSON data being inserted into the Stripe description field when rebuilding the stripe cache

[2023-09-30 06:39:46,808] ERROR in app: Exception on /admin/onboard [GET]
Traceback (most recent call last):
  File "/home/ubuntu/ShopIdentifyer/.venv/lib/python3.10/site-packages/flask/app.py", line 2529, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ubuntu/ShopIdentifyer/.venv/lib/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ubuntu/ShopIdentifyer/.venv/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ubuntu/ShopIdentifyer/.venv/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/opt/ShopIdentifyer/identity/__init__.py", line 208, in decorated_function
    return f(*args, **kwargs)
  File "/opt/ShopIdentifyer/identity/__init__.py", line 1496, in show_admin_onboard
    return render_template('onboard.html', entries=get_members_to_onboard(), stats=get_public_stats())
  File "/opt/ShopIdentifyer/identity/__init__.py", line 669, in get_members_to_onboard
    x = json.loads(row[3])
  File "/usr/lib/python3.10/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType
munroebot commented 1 year ago

Fixed in latest