Starts in:
2 DAYS
0 HR
10 MIN
2 SEC
Starts in:
2 D
0 H
10 M
2 S
Open Closed

Error encountered while upgrading the project from version 4.3.3 to version 7.0.1 #4719


User avatar
0
ilhan.ordukaya 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 followings:

  • ABP Framework version: v4.3.3 - updated v7.0.1
  • UI type: Angular
  • DB provider: EF Core / Mssql
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

"After upgrading the project, the lookup methods in the Pop-up are empty. I initially thought the issue was frontend-related, but it turned out to be API-related. The method being called returns a 500 error code as a response. It was working fine before the upgrade. Could there have been an issue during the upgrade? How can I resolve this?"

I'm waiting for your help.


28 Answer(s)
  • User Avatar
    0
    mahmut.gundogdu created

    getCityData(input:PageQueryParams){ return this.service.getCityLookup(input) }

    hocam getFn methodu 1 tane parametre aliyor. o parametrenin degerleri

     interface PageQueryParams {  
            filter?: string;  
            sorting?: string;  
            skipCount?: number;  
            maxResultCount?: number;  
        }  
    

    sizin methodunuzun degeri LookupRequestDTO o da Id ce displayName aliyor. Ben olsam componente bir method ekler

    getFn({filter}:PageQueryParams) {
    return this.service.getCityLookup(filter);
    }
    
    

    derdim. LookupRequestDTO , PageQueryParams a benzer degerler icersede TS cast edemiyor. zaten bize basitce filter lazim. onu da gonderirseniz calisir/

  • User Avatar
    0
    ilhan.ordukaya created

    getFn({filter}:PageQueryParams) { return this.service.getCityLookup(filter); }

    componente dediğiniz gibi bir metod tanımladığımda şöyle bir hata alıyorum

  • User Avatar
    0
    mahmut.gundogdu created

    getFn({filter}:PageQueryParams) { return this.service.getCityLookup(filter); }

    componente dediğiniz gibi bir metod tanımladığımda şöyle bir hata alıyorum

    Hocam typescript uyari ile aslinda derdiniz anlatmis. Type uyumsuzlugu var. Beklenen deger ile sizin atadiginiz deger uygun degil

    function yourFunctionName({filter}:LookupRequestDto){
    //...
    }
    

    gibi yazabilirsiniz

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