Open Closed

Statics client generation error with Abp cli command #8881


User avatar
0
mariovh created
  • ABP Framework version: v9.0.4
  • UI Type: Blazor WASM
  • Database System: EF Core (SQL Server)

Hi,

I'm having issues generating the static clients using the ABP CLI command.

I have the following AppService interface with its implementation, as well as a base AppService.

Base appservice and methods:

Here is the structure of the DTOs, filters:

This is what the CLI generates with the following command: abp generate-proxy -t csharp -u https://localhost:44393/ --without-contracts

Finally, I'm adding the app-generate-proxy.json file:

And HttpApi.Client references:

Thank you.


3 Answer(s)
  • User Avatar
    0
    mariovh created

    Hi again,

    I partially fixed the parameters error with [FromBody] in AppServiceBase Method

    But the response Dto and the implementation still not work:

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Client proxy does not support the synchronization method, you should always use asynchronous methods as a best practice

  • User Avatar
    0
    mariovh created

    Hi,

    My bad, the name convention needed the word Async at the end of function names to work.

    Thanks for the support

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00