Starts in:
1 DAY
19 HRS
19 MIN
28 SEC
Starts in:
1 D
19 H
19 M
28 S
Open Closed

Hitting Error 500 when calling for Application Configuration in Angular Frontend #5345


User avatar
0
jordanchen98 created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include the followings:

  • ABP Framework version: v4.3.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: Error 500 when getting Application Configuration
  • Steps to reproduce the issue:"

Hi, I have created a project using ABP Monolithic Architecture and have deployed to IIS on my client's windows server.

I've created 2 websites in the IIS, one for the Swagger API and Another for the Angular Frontend. Everything works fine with the deployment no issues, its just that occasionally it will encounter error 500 when calling for Application Configuration. This should be to get the localizations and set up the permissions, and should be called when accessing the Angular page. This happens once every 1-2 days, and the current solution is to directly restart the IIS from the server itself. Was wondering if this issue is common when deployed to IIS.

Above is the image containing the error when loading the Angular Page.

Thank you! Jordan Chen


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please share the logs of this 500 error. liming.ma@volosoft.com

  • User Avatar
    0
    jordanchen98 created

    Hi Liming,

    Sorry for the delay, we had to obtain the logs when it happened. Attached is the link for the log.

    https://drive.google.com/file/d/1SbmIA4FRPXKC4LEbAGem6TuSRbnEDP3E/view?usp=sharing

    Thanks, Jordan Chen

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can check the code of FilterValueAppService.cs:line 50

    [11:05:12 ERR] One or more errors occurred. (A task was canceled.)
    System.AggregateException: One or more errors occurred. (A task was canceled.)
    ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
       at System.Threading.Tasks.Task.GetExceptions(Boolean includeTaskCanceledExceptions)
       at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
       at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
       at System.Threading.Tasks.Task`1.get_Result()
       at KMS.FilterValues.FilterValueAppService.GetFilters() in D:\Work\EPF\KMS\aspnet-core\src\KMS.Application\FilterValues\FilterValueAppService.cs:line 50
    
  • User Avatar
    0
    jordanchen98 created

    Hi,

    I've checked the code of FilterValueAppService.cs:line 50

    But it is just calling retrieving a list using its respective repository.

    I've tried to run the api api/abp/application-configuration locally and on its own, it did not (also should not) hit the code above. Could this be related to caching used by abp?

    Thanks, Jordan

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Make your method async, and call GetListAsync by await

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06