Skip to content

FAQ and Troubleshooting

Akash Goswami edited this page Jun 29, 2026 · 1 revision

FAQ and Troubleshooting

28P01: password authentication failed

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.

IDX10720 on startup

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.Api

Unable to resolve service for type 'DbContextOptions<AppDbContext>'

You ran an ef command without the startup project. Always pass both flags:

dotnet ef database update --project DocAnalytics.Data --startup-project DocAnalytics.Api

Authenticated calls return empty data after a DB reset

Your token was issued before the reset and points to tenant/user GUIDs that no longer exist. Log in again for a fresh token.

My seed-data changes aren't showing up

The seeder is idempotent (if (await db.Tenants.AnyAsync()) return;). Reset the DB first — see Database and Migrations.

Swagger didn't open

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).

I'm getting 403 on a batch/dashboard call

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.

Clone this wiki locally