Hi,
All log levels are at DEBUG. I stopped all 3 services, cleaned out the logs, then re ran all, logged in and got the Auth exception again. Currently the AUTH / API projects are running fine, no errors, just dealing with this UNAUTHORIZED error in the Blazor Project.
Here are the logs from just now:
https://1drv.ms/u/s!AkJmGuHQuob7kqpAq6Pb-Ro49fpzjQ?e=y7mA7e
Thanks,
Karim
Hi,
I have added this code into all 3 projects, still getting the same error as before. Is there anything configuration or db related that would cause this? Any other ideas on a way forward here? I need to demo to our client and this is becoming a serious problem for us now.
I had been travelling last week and wasn't available much but I will be very much available now to implement any and all possible solutions to this quickly.
Thanks,
Karim
Hi,
Sorry for late reply, was travelling. I will add this in and do some further testing, if the db issues are no longer in the logs then that will be great. My only concern is that there is a lot of extra code / configuration to get to this point and that might have other unintended effects. I am going to be doing some heavy load testing on this app next week so I want to make sure we haven't introduced any issues that might come up during testing.
For now please keep this ticket open until I can finish my testing and confirm that things are OK.
Thanks,
Karim
Hi,
OK I configured the test environment with the test redis db, and removed the initial DB call from the Index page, however when I go to the next page (Dashboard) I am still getting the Unauthorized:
I am not sure where you want me to put the MyIdentitySessionChecker code, can you let me know where that goes and I will give that a try?
Thanks,
Karim
Hi,
Can you tell me where to put the MyIdentitySessionChecker code so I can test this possible solution?
Thanks,
Karim
Hi,
OK I have commented out the AppService call in Index, and also the db call in Index in the Auth project. I don't see any of those DB errors in the logs now, though still having ABPAuthentication errors ( different support ticket ).
Here are the new logs:
https://1drv.ms/u/s!AkJmGuHQuob7kqdJN7sF0etJ-CbLzQ?e=GYNaHp
Is there a way for me to fix this so that I can add back my code? Is this related to the OpenIDDict db context? Hope to be able to find a proper fix for this so that I can continue working.
Thanks,
Karim
Hi,
OK I configured the test environment with the test redis db, and removed the initial DB call from the Index page, however when I go to the next page (Dashboard) I am still getting the Unauthorized:
I am not sure where you want me to put the MyIdentitySessionChecker code, can you let me know where that goes and I will give that a try?
Thanks,
Karim
Btw You can try using
NullCancellationTokenProviderinsteadHttpContextCancellationTokenProviderto troubleshoot theA task was canceled.problempublic override void ConfigureServices(ServiceConfigurationContext context) { context.Services.Replace(ServiceDescriptor.Transient<ICancellationTokenProvider, NullCancellationTokenProvider>()); }
Getting an error here:
Any idea on how to get this to work?
Thanks,
Karim
Hi,
at ESv2.Pages.IndexModel.OnGetAsync() in D:\a\Hathor\Hathor\aspnet-core\src\ESv2.AuthServer\Pages\Index.cshtml.cs:line 30
OK that is in the Auth project, the line that I added back in as it didn't have any effect previously on these issues. I will comment this out again and update the CancellationTokenProvider and send logs.
Thanks,
Karim
Hi,
Yeah Redis does seem like it could be the problem here. I did set up a separate Redis server for Test, but I am not using it, Test is configured using the Production Redis db for now so that I can keep everything consistent for troubleshooting.
Any other ideas on what we can try here?
Thanks,
Karim