- ABP Framework version: v8.1.3
- UI Type: Angular
- Database System: EF Core ( PostgreSQL)
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
Hello i have upgraded my project from 8.1.1 to 8.1.3 soon. It was a smooth transition but afterwards i realized, if i do a call to backend and backend do not return anything as response then leptonx theme is redirecting the page to an error page.
When i do the same call through postman what i get is 204 response.
what can be the reason that ui is redirected to error page. Whenever http call is 204 response instead of 200 response?
3 Answer(s)
-
0
hi
Whenever http call is 204 response instead of 200 response?
Can you share the logs of this HTTP call?
-
0
Hello @maliming, The problem is fixed now, i have no idea how it has been fixed though, i have tried to delete all node_modules and delete yarn.lock. Also try to clean the yarn cache. The problem persisted. Then i restart the computer and recreate my docker images for postgresql, redis and rabbitmq, then the problem is solved, but i have no clue how it has been fixed.
there were no errors on the backend side.
2024-06-15 01:09:30.647 +02:00 [INF] Route matched with {area = "clientManagement", controller = "Clients", action = "Get", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Doohlink.ClientManagement.Clients.ClientDto] GetAsync(System.Guid) on controller Doohlink.ClientManagement.Clients.ClientController (Doohlink.ClientManagement.HttpApi). 2024-06-15 01:09:30.650 +02:00 [INF] Executing action method Doohlink.ClientManagement.Clients.ClientController.GetAsync (Doohlink.ClientManagement.HttpApi) - Validation state: "Valid" 2024-06-15 01:09:30.682 +02:00 [INF] Executed action method Doohlink.ClientManagement.Clients.ClientController.GetAsync (Doohlink.ClientManagement.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 32.2896ms. 2024-06-15 01:09:30.683 +02:00 [INF] Executing ObjectResult, writing value of type 'Doohlink.ClientManagement.Clients.ClientDto'. 2024-06-15 01:09:30.683 +02:00 [INF] Executed action Doohlink.ClientManagement.Clients.ClientController.GetAsync (Doohlink.ClientManagement.HttpApi) in 35.4488ms 2024-06-15 01:09:30.683 +02:00 [INF] Executed endpoint 'Doohlink.ClientManagement.Clients.ClientController.GetAsync (Doohlink.ClientManagement.HttpApi)' 2024-06-15 01:09:30.863 +02:00 [INF] CORS policy execution successful. 2024-06-15 01:09:30.872 +02:00 [INF] CORS policy execution successful. 2024-06-15 01:09:30.895 +02:00 [INF] Executing endpoint 'Doohlink.ClientManagement.Clients.ClientController.GetListAsync (Doohlink.ClientManagement.HttpApi)' 2024-06-15 01:09:30.895 +02:00 [INF] Route matched with {area = "clientManagement", controller = "Clients", action = "GetList", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Application.Dtos.PagedResultDto`1[Doohlink.ClientManagement.Clients.ClientDto]] GetListAsync(Doohlink.ClientManagement.Clients.ClientListFilterDto) on controller Doohlink.ClientManagement.Clients.ClientController (Doohlink.ClientManagement.HttpApi). 2024-06-15 01:09:30.898 +02:00 [INF] Executing action method Doohlink.ClientManagement.Clients.ClientController.GetListAsync (Doohlink.ClientManagement.HttpApi) - Validation state: "Valid" 2024-06-15 01:09:30.921 +02:00 [INF] Executed action method Doohlink.ClientManagement.Clients.ClientController.GetListAsync (Doohlink.ClientManagement.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 23.1177ms. 2024-06-15 01:09:30.921 +02:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Application.Dtos.PagedResultDto`1[[Doohlink.ClientManagement.Clients.ClientDto, Doohlink.ClientManagement.Application.Contracts, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null]]'. 2024-06-15 01:09:30.921 +02:00 [INF] Executed action Doohlink.ClientManagement.Clients.ClientController.GetListAsync (Doohlink.ClientManagement.HttpApi) in 26.1573ms 2024-06-15 01:09:30.921 +02:00 [INF] Executed endpoint 'Doohlink.ClientManagement.Clients.ClientController.GetListAsync (Doohlink.ClientManagement.HttpApi)' 2024-06-15 01:09:31.107 +02:00 [INF] CORS policy execution successful. 2024-06-15 01:09:31.112 +02:00 [INF] CORS policy execution successful. 2024-06-15 01:09:31.180 +02:00 [INF] Executing endpoint 'Doohlink.Screens.ScreenController.GetListAsync (Doohlink.HttpApi)' 2024-06-15 01:09:31.180 +02:00 [INF] Route matched with {area = "doohlink", controller = "Screens", action = "GetList", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Application.Dtos.PagedResultDto`1[Doohlink.Screens.ScreenInListDto]] GetListAsync(Doohlink.Screens.ScreenListFilterDto) on controller Doohlink.Screens.ScreenController (Doohlink.HttpApi). 2024-06-15 01:09:31.203 +02:00 [INF] Executing action method Doohlink.Screens.ScreenController.GetListAsync (Doohlink.HttpApi) - Validation state: "Valid" 2024-06-15 01:09:31.289 +02:00 [INF] Executed action method Doohlink.Screens.ScreenController.GetListAsync (Doohlink.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 86.0839ms. 2024-06-15 01:09:31.289 +02:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Application.Dtos.PagedResultDto`1[[Doohlink.Screens.ScreenInListDto, Doohlink.Application.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. 2024-06-15 01:09:31.289 +02:00 [INF] Executed action Doohlink.Screens.ScreenController.GetListAsync (Doohlink.HttpApi) in 109.2992ms 2024-06-15 01:09:31.289 +02:00 [INF] Executed endpoint 'Doohlink.Screens.ScreenController.GetListAsync (Doohlink.HttpApi)' 2024-06-15 01:09:32.108 +02:00 [INF] CORS policy execution successful. 2024-06-15 01:09:32.110 +02:00 [INF] CORS policy execution successful. 2024-06-15 01:09:32.143 +02:00 [INF] Executing endpoint 'Doohlink.Campaigns.CampaignController.UpdateAsync (Doohlink.HttpApi)' 2024-06-15 01:09:32.144 +02:00 [INF] Route matched with {area = "doohlink", controller = "Campaigns", action = "Update", page = ""}. Executing controller action with signature System.Threading.Tasks.Task UpdateAsync(System.Guid, Doohlink.Campaigns.UpdateCampaignDto) on controller Doohlink.Campaigns.CampaignController (Doohlink.HttpApi). 2024-06-15 01:09:32.166 +02:00 [INF] Executing action method Doohlink.Campaigns.CampaignController.UpdateAsync (Doohlink.HttpApi) - Validation state: "Valid" 2024-06-15 01:09:32.207 +02:00 [INF] Executed action method Doohlink.Campaigns.CampaignController.UpdateAsync (Doohlink.HttpApi), returned result Microsoft.AspNetCore.Mvc.EmptyResult in 41.3137ms. 2024-06-15 01:09:32.207 +02:00 [INF] Executed action Doohlink.Campaigns.CampaignController.UpdateAsync (Doohlink.HttpApi) in 63.3134ms 2024-06-15 01:09:32.207 +02:00 [INF] Executed endpoint 'Doohlink.Campaigns.CampaignController.UpdateAsync (Doohlink.HttpApi)' 2024-06-15 01:09:33.962 +02:00 [INF] CORS policy execution successful. 2024-06-15 01:09:33.964 +02:00 [INF] CORS policy execution successful. 2024-06-15 01:09:33.988 +02:00 [INF] Executing endpoint 'Doohlink.Campaigns.CampaignController.GetListAsync (Doohlink.HttpApi)' 2024-06-15 01:09:33.988 +02:00 [INF] Route matched with {area = "doohlink", controller = "Campaigns", action = "GetList", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Application.Dtos.PagedResultDto`1[Doohlink.Campaigns.CampaignInListDto]] GetListAsync(Doohlink.Campaigns.CampaignListFilterDto) on controller Doohlink.Campaigns.CampaignController (Doohlink.HttpApi). 2024-06-15 01:09:34.011 +02:00 [INF] Executing action method Doohlink.Campaigns.CampaignController.GetListAsync (Doohlink.HttpApi) - Validation state: "Valid" 2024-06-15 01:09:34.045 +02:00 [INF] Executed action method Doohlink.Campaigns.CampaignController.GetListAsync (Doohlink.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 34.7376ms. 2024-06-15 01:09:34.046 +02:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Application.Dtos.PagedResultDto`1[[Doohlink.Campaigns.CampaignInListDto, Doohlink.Application.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. 2024-06-15 01:09:34.046 +02:00 [INF] Executed action Doohlink.Campaigns.CampaignController.GetListAsync (Doohlink.HttpApi) in 57.2554ms 2024-06-15 01:09:34.046 +02:00 [INF] Executed endpoint 'Doohlink.Campaigns.CampaignController.GetListAsync (Doohlink.HttpApi)'
and whenever call is reached to the backend side it was updating the database. Only problem was after the http call whenever client side see status 204 it redirected to the error page.
Anyway for now we can close this ticket. If it happens again, i can create a new ticket for it.
-
0
Good news.