Starts in:
1 DAY
20 HRS
57 MIN
39 SEC
Starts in:
1 D
20 H
57 M
39 S

Activities of "okains"

  • ABP Framework version: v8.2.3
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hi,

This just started to happen, when I log in to our production (test) environment everything is OK for a few seconds, then I seem to be losing authentication, and getting an 'Unauthorized' exception when calling a service method on the homepage. I have a video of this here:

https://drive.google.com/file/d/1xJpaKd_RJFRgb90Ol0IxINk0oW9c6n6Y/view?usp=drive_link

I have detailed errors on so I can see the exception in the browser console:

Do you know why / how this is happening and how to fix?

Thanks,

Karim Ainsworth

Hi,

You have access to this repo in GitHub, it is the same repo as before. The problem is though that this doesn't happen locally, it is only showing up when we deploy to Azure. And not all the time.

I just need to figure out a fix or workaround for this in some way so that we can deploy properly. If you have any ideas or can look at the code and see if there is anything obviously wrong with the Auth project that would be great.

Thanks,

Karim

Hi,

OK I copied the .map file into the libs folder and that seems to have fixed it, thanks,

Karim

  • ABP Framework version: v8.2.3
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hi,

I am getting a 404 returned on every login in production, due to there being a missing moment.min.js.map file.

This is causing a noticeable 404 Error Page flashing on screen for 1 second before the login page loads.

Here are the sections of the logs that show this :

2024-09-07 03:43:25.154 +00:00 [INF] > Minified /libs/timeago/jquery.timeago.js (7636 bytes -> 4107 bytes) 2024-09-07 03:43:25.157 +00:00 [DBG] - /libs/bootstrap-datepicker/bootstrap-datepicker.min.js (33878 bytes) 2024-09-07 03:43:25.157 +00:00 [DBG] > Already minified. 2024-09-07 03:43:25.161 +00:00 [DBG] - /libs/moment/moment.min.js (58891 bytes) 2024-09-07 03:43:25.161 +00:00 [DBG] > Already minified.

2024-09-07 03:46:01.711 +00:00 [INF] Request starting HTTP/1.1 GET https://esv2-auth-test.azurewebsites.net/__bundles/moment.min.js.map; - null null 2024-09-07 03:46:01.712 +00:00 [DBG] The request path /__bundles/moment.min.js.map; does not match a supported file type 2024-09-07 03:46:01.712 +00:00 [DBG] No candidates found for the request path '/__bundles/moment.min.js.map;' 2024-09-07 03:46:01.712 +00:00 [DBG] Request did not match any endpoints 2024-09-07 03:46:01.715 +00:00 [INF] Request finished HTTP/1.1 GET https://esv2-auth-test.azurewebsites.net/__bundles/moment.min.js.map; - 302 null null 3.4218ms 2024-09-07 03:46:01.715 +00:00 [INF] Request reached the end of the middleware pipeline without being handled by application code. Request path: GET https://esv2-auth-test.azurewebsites.net/__bundles/moment.min.js.map;, Response status code: 302 2024-09-07 03:46:01.834 +00:00 [INF] Executing ContentResult with HTTP Response ContentType of application/javascript 2024-09-07 03:46:01.835 +00:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc) in 2397.8982ms 2024-09-07 03:46:01.835 +00:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc)' 2024-09-07 03:46:01.856 +00:00 [INF] Request finished HTTP/1.1 GET https://esv2-auth-test.azurewebsites.net/Abp/ApplicationLocalizationScript?cultureName=en - 200 91128 application/javascript 2427.1567ms 2024-09-07 03:46:02.131 +00:00 [INF] Request starting HTTP/1.1 GET https://esv2-auth-test.azurewebsites.net/Error?httpStatusCode=404 - null null

How can I fix this problem?

Thanks,

Karim Ainsworth

Hi,

OK I commented out the // Application = await OpenIdApplicationRepository.GetListAsync(); line,

I am still getting the : [ERR] An error occurred using the connection to database 'ESv2-testing' on server 'tcp:hathor-hk.database.windows.net,1433'. error intermittently.

Any idea of what I can try next on this? This is a pretty critical error, we can deploy our app reliably at this point. Any help would be much appreciated.

Thanks,

Karim

OK that's great, thanks for your help and explanation.

Hi,

Yes, that works! Great, thank you. Can you explain to me though why that caused the problem?

Thanks,

Karim

Ah sorry, I just gave you access to the shared repo, should be able to build now.

Hi,

I have granted access, thanks.

That client validation failed INF is only present when the DB connection ERR happens. The configuration is fine, it works fine occasionally and I have double and tripled checked Environment Variables and the redirectURLs in the OpenIddictApplications table. Everything is at it should be.

This is why I had said that I think that DB error is happening when trying to read the OpenIddictApplications table, so no data coming back therefore the redirect_uri mismatch. Just a guess but I have been testing this for days and that seems to be the 1 thing that makes a bit of sense. That is why I wanted to retry that db call in the first place.

This is happening on an AppService in Azure with 3 deployment slots, Test / Staging / Production . It seems that only 1 deployment slot will work at a time, the other 2 then throw the ' error using the connection to the database ' error and then redirect uri mismatch. And there are no config changes at all being made.

Showing 41 to 50 of 164 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06