Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Not able to get token based on the latest source code (up to 17th Mar) #918

Closed
lsyuan opened this issue Mar 17, 2024 · 1 comment
Closed

Comments

@lsyuan
Copy link

lsyuan commented Mar 17, 2024

I cloned the entire repo to my local, updated the connection string, then start debug, the API is successfully running up, but when I trying to get token via api/tokens, I got exception in GetTokenAsync() method.
image

This is the stacktrace:
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.Execute[TResult](Expression expression)
at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable1.GetEnumerator() at Microsoft.EntityFrameworkCore.Internal.InternalDbSet1.System.Collections.Generic.IEnumerable.GetEnumerator()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at FSH.WebApi.Infrastructure.Identity.TokenService.d__6.MoveNext() in E:\fsh\dotnet-webapi-starter-kit-master\src\Infrastructure\Identity\TokenService.cs:line 43

I tried to use postgres and mssql, both of them able to auto create the tables and also inject data when first time running up.

@lsyuan
Copy link
Author

lsyuan commented Mar 17, 2024

sorry this is not a bug. I forgot to set the tenant code in header.

@lsyuan lsyuan closed this as completed Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant