#350 — [Bug]: Unexpected 500 error GET /self-management/tenant
Repo: Twill-AI/facade State: closed | Status: done Assignee: sparsh-twillpayments
Created: 2025-05-20 · Updated: 2025-06-16
Description
Steps to reproduce
To reproduce:
- In Automation repo ./fixtures/user.fixture.ts change email to: test+notenant+nointegration1@twillpayments.com (1,2,3 - fail results; 4,5 - pass results)
emailUserConfirmed: async ({ api }, use, workerInfo) => {
const email = `test+notenant+nointegration${workerInfo.parallelIndex + 1}@twillpayments.com`;
- Run
npm run test:headed logIn.spec.ts
Expected behavior
I expect all of listed users to remove tenant/profile if such exist and GET /self-management/tenant to return the message below if user doesn’t have a tenant
{
"detail": "User doesn't have tenant."
}
Actual behavior
But it returns 500 Internal Server Error
See traces
FAILtest+notenant+nointegration1,2,3.zip
SUCCESStest+notenant+nointegration4,5.zip
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets