fullstackhero / dotnet-starter-kit

Production Grade Cloud-Ready .NET 8 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
https://fullstackhero.net/dotnet-webapi-boilerplate/
MIT License
5.19k stars 1.56k forks source link

Cannot add jobs to hangfire on [AllowAnonymous] method #196

Closed geekz-reno closed 2 years ago

geekz-reno commented 2 years ago

Describe the bug Send forgot password email, thrown Job '1' has been failed due to an exception DN.WebApi.Application.Exceptions.InvalidTenantException: Invalid Tenant. only happen on [AllowAnonymous] method, when trying to add Jobs to hangfire, SetCurrentTenant hit twice, one with tenant from header, and one null and it was for Hangfire Jobs and was not replicable on version 4-rc.

iammukeshm commented 2 years ago

@geekz-reno Could you please post the Error stack trace?

frankyjquintero commented 2 years ago

Identified error already sent pull request with solution

frankyjquintero commented 2 years ago

https://github.com/fullstackhero/dotnet-webapi-boilerplate/pull/199#issue-1064879949