#336 — [Bug]: Error with profile with missing tenants

Repo: Twill-AI/twill-ai-ui State: open | Status: open Assignee: raymondehizoba

Created: 2025-05-02 · Updated: 2025-05-20

Description

Steps to reproduce

No clear steps how to reproduce. It happened during log in.

  1. Go to staging (GH pages frontend) and try to log in with the user listed below (error may not happen)

The error seems to happen somewhat at random but relatively often. It was noticed when trying to log n following account by @TwillPayments and @nadddder:

user: martin+demo@twillpayments.com

I checked the logs immediately after the error and I saw this error (that is supressed in alerts):

Here is a query to find the logs

Looks like some users have been left with no tenants assigned (screen shot from profile table on staging):

Image

But that does not seem to be

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets