Open Closed

Issue with Angular template generation #4570


User avatar
0
scott7106 created
  • ABP Framework version: v7.0.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

Trying to generate the proxies for angular gave the following message. Cannot read properties of null (reading 'replace')

Is there any way to get debug information when generating the proxies?

I tracked the problem down to the following issue. The {id} paramater in the route, was not in the parameters for the method. This worked in version 6, but it does not work in version 7. The solution was to remove the {id} parameter for the route since it was not being used. However, it took me 2+ hours to isolate this issue. Knowing which API endpoint caused the error could have saved me so much time.

 [HttpGet] 
 [Route("{id}/available-models")] 
 public Task<PagedResultDto<LookupDt<int?>>> GetAvailableModelsAsync(LookupRequestDto input) 
 { 
     return _dictionaryAppService.GetAvailableModelsAsync(input); 
 }

1 Answer(s)
  • User Avatar
    0
    muhammedaltug created

    Hello,

    Currently, proxy generation does not have this function. But I opened an issue in the ABP repository. You can follow the status of issue

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38