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.
image.png

image.png

image.png

Base appservice and methods:

image.png

image.png

image.png

Here is the structure of the DTOs, filters:

image.png
image.png
image.png

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

image.png
image.png

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

image.png
image.png

And HttpApi.Client references:
image.png

Thank you.


3 Answer(s)
  • User Avatar
    0
    mariovh created

    Hi again,

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

    But the response Dto and the implementation still not work:
    image.png

  • 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 13, 2025, 04:08