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

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 10, 2025, 06:30