-
Notifications
You must be signed in to change notification settings - Fork 0
FAQ and Troubleshooting
Your connection string Username/Password don't match a real PostgreSQL role. Re-set the secret with your actual postgres password — see Local Setup Guide.
Jwt:Key is shorter than 32 characters. Set a longer key:
dotnet user-secrets set "Jwt:Key" "any-32+-character-secret-key-for-local-dev" --project DocAnalytics.ApiYou ran an ef command without the startup project. Always pass both flags:
dotnet ef database update --project DocAnalytics.Data --startup-project DocAnalytics.ApiYour token was issued before the reset and points to tenant/user GUIDs that no longer exist. Log in again for a fresh token.
The seeder is idempotent (if (await db.Tenants.AnyAsync()) return;). Reset the DB first — see Database and Migrations.
dotnet run doesn't open a browser. Either use dotnet watch run, or open http://localhost:<port>/swagger yourself (port is printed in the console).
You're requesting a site_id your user isn't granted (SITE_FORBIDDEN). Check the seed roster in API Reference — e.g. user.b@acme.com can only use Chennai.