wizarrrr / wizarr

Wizarr is an advanced user invitation and management system for Jellyfin, Plex, Emby etc.
https://docs.wizarr.dev
MIT License
1.28k stars 89 forks source link

IntegrityError: NOT NULL constraint failed: users.email #392

Closed wizarr-sentry[bot] closed 5 months ago

wizarr-sentry[bot] commented 5 months ago

Sentry Issue: WIZARR-BACKEND-4P

IntegrityError: NOT NULL constraint failed: users.email
  File "peewee.py", line 3252, in execute_sql
    cursor.execute(sql, params or ())

IntegrityError: NOT NULL constraint failed: users.email
(11 additional frame(s) were not displayed)
...
  File "app/scheduler.py", line 60, in scan_users
    global_sync_users_to_media_server()
  File "helpers/universal.py", line 222, in global_sync_users_to_media_server
    sync_plex_users()
  File "helpers/plex.py", line 287, in sync_plex_users
    create_user(username=plex_user.title, token=plex_user.id, email=plex_user.email)
  File "helpers/users.py", line 167, in create_user
    user: Users = Users.create(**user_model)

Job "<Job (id=syncUsers name=scan_users)>" raised an exception