Open Closed

Revisiting Issue #9058 - Proxy Generation Issue #9058 #9153 - Issue is back again #9485


User avatar
0
maharatha@gmail.com created

The issue is back. Please refer the issue and you will understand what I am asking.

This probably happened with the latest update of Abp Studio.

In Brief I have 2 mciroservice and when i try to generate proxy for one microservice it errors out stating the other microservice

angular>abp generate-proxy -t ng -url http://localhost:44319 -m artificialintelligence
[19:50:38 INF] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli
[19:50:39 WRN] "@abp/ng.schematics" version is lower than ABP Cli version.
[Invalid Module] Backend module "document" does not exist in API definition.

1 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • The error [Invalid Module] Backend module "document" does not exist in API definition. indicates that the ABP CLI is trying to generate proxies for a module ("document") that is not present in the API definition exposed by your backend at the specified URL.

    • This issue can occur if:

      1. The backend microservice you are targeting (with -url http://localhost:44319 and -m artificialintelligence) does not expose the "document" module in its API definition.
      2. The API definition endpoint (/api/abp/api-definition?includeTypes=true) is returning information about both microservices, but one of them is not running or not properly configured.
      3. There is a mismatch between the running backend services and the modules you are specifying in the CLI command.

    Solution Steps

    1. Ensure Both Microservices Are Running

      • Start both microservices so that their API definitions are available. The ABP CLI may attempt to resolve all modules referenced in the solution.
    2. Check API Definition

      • Open http://localhost:44319/api/abp/api-definition?includeTypes=true in your browser or use a tool like Postman to verify which modules are exposed. Ensure "artificialintelligence" is present and "document" is not erroneously referenced.
    3. Check CLI and Schematics Versions

      • The warning @abp/ng.schematics" version is lower than ABP Cli version suggests a version mismatch. Update both the ABP CLI and @abp/ng.schematics to the latest compatible versions:
        dotnet tool update -g Volo.Abp.Cli
        npm install @abp/ng.schematics@latest --save-dev
        
    4. Specify the Correct Module

      • Double-check the module name you pass with -m. It must match exactly as exposed in the API definition.
    5. Clean and Rebuild

      • Sometimes, cleaning and rebuilding both backend and frontend projects can resolve stale references.
    6. If Using ABP Studio

      • Ensure ABP Studio is updated to the latest version, as recent updates may affect proxy generation.

    References


    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

Boost Your Development
ABP Live Training
Packages
See Trainings
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 July 17, 2025, 06:22