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

Database Doesn't Automatically grab new Auth Tokens #157

Closed
noremacskich opened this issue Oct 8, 2024 · 1 comment · Fixed by #158 or #161
Closed

Database Doesn't Automatically grab new Auth Tokens #157

noremacskich opened this issue Oct 8, 2024 · 1 comment · Fixed by #158 or #161
Assignees
Labels
bug Something isn't working

Comments

@noremacskich
Copy link
Member

The database currently only grabs the auth token on startup, it needs to dynamically update that

@noremacskich noremacskich added the bug Something isn't working label Oct 8, 2024
@noremacskich noremacskich self-assigned this Oct 8, 2024
@noremacskich noremacskich linked a pull request Oct 8, 2024 that will close this issue
@noremacskich
Copy link
Member Author

Looks like we are now getting a too many instances error

System.InvalidOperationException: An error was generated for warning 'Microsoft.EntityFrameworkCore.Infrastructure.ManyServiceProvidersCreatedWarning': More than twenty 'IServiceProvider' instances have been created for internal use by Entity Framework. This is commonly caused by injection of a new singleton service instance into every DbContext instance. For example, calling 'UseLoggerFactory' passing in a new instance each time--see https://go.microsoft.com/fwlink/?linkid=869049 for more details. This may lead to performance issues, consider reviewing calls on 'DbContextOptionsBuilder' that may require new service providers to be built. This exception can be suppressed or logged by passing event ID 'CoreEventId.ManyServiceProvidersCreatedWarning' to the 'ConfigureWarnings' method in 'DbContext.OnConfiguring' or 'AddDbContext'.

@noremacskich noremacskich reopened this Oct 11, 2024
@noremacskich noremacskich linked a pull request Oct 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant