Open Closed

Ng Proxies #3446


User avatar
0
mmaldonado@emscltd.com created
  • ABP Framework version: 5.3.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): microservices template
  • Exception message and stack trace:
  • [Invalid Module] Backend module "productService" does not exist in API definition.
  • abp generate-proxy -t ng -url https://localhost:44361
  • [16:41:39 INF] ABP CLI (https://abp.io)
  • [16:41:39 INF] Version 5.3.2 (Stable)
  • [Invalid Module] Backend module "app" does not exist in API definition.
  • Steps to reproduce the issue:"run abp generate-proxy -t ng -url https://localhost:44361 after create the microservice solution"

16 Answer(s)
  • User Avatar
    0
    mmaldonado@emscltd.com created

    I am using latest NodeJs version I also tried dotnet tool uninstall -g volo.abp.cli dotnet tool install -g volo.abp.cli --version 5.1.1 and run again the abp generate-proxy -t ng -url https://localhost:45048 abp generate-proxy -t ng -url https://localhost:44325 abp generate-proxy -t ng -url https://localhost:44361

    45048 is the port for my new service 44325 is the gateway 44361 is productservice

    no one is working, all of them ends on [Invalid Module] Backend module "app" does not exist in API definition.

    My new service has custom endpoints

  • User Avatar
    0
    mmaldonado@emscltd.com created

    https://1drv.ms/u/s!An5XT7_73uQajg0cKemVDZ7mYpwF?e=78iQ76

    the link should contain: swagger.json api-definition.json

  • User Avatar
    0
    muhammedaltug created

    Hello,

    Currently, proxy generation in angular microservice templates needs extra steps. We will work on this. Please follow steps in gist

    Note: Url parameter for angular proxy generation started to be supported in abp cli 5.2.2 and @abp/ng.schematics package version 5.2.2.

  • User Avatar
    0
    mmaldonado@emscltd.com created

    I think is a mistake on the steps

    abp generate-proxy -t ng -m myService -u https://service-url --target my-service

    should be MyService based on the example documentation in environment.ts

  • User Avatar
    0
    mmaldonado@emscltd.com created

    RangeError: Maximum call stack size exceeded at getConstructorName (node:internal/util/inspect:575:9) at formatRaw (node:internal/util/inspect:827:23) at formatValue (node:internal/util/inspect:817:10) at inspect (node:internal/util/inspect:347:10) at formatWithOptionsInternal (node:internal/util/inspect:2167:40) at format (node:internal/util/inspect:2021:10) at console.warn (D:\Repositories\NebulOS\Elevos.Phoenix\apps\angular-pcr\node_modules@angular\cli\lib\cli\index.js:45:39) at Observable._trySubscribe (D:\Repositories\NebulOS\Elevos.Phoenix\apps\angular-pcr\node_modules@abp\ng.schematics\node_modules\rxjs\internal\Observable.js:55:25) at Observable.subscribe (D:\Repositories\NebulOS\Elevos.Phoenix\apps\angular-pcr\node_modules@abp\ng.schematics\node_modules\rxjs\internal\Observable.js:30:22) at MergeMapOperator.call (D:\Repositories\NebulOS\Elevos.Phoenix\apps\angular-pcr\node_modules@abp\ng.schematics\node_modules\rxjs\internal\operators\mergeMap.js:37:23)

  • User Avatar
    0
    mmaldonado@emscltd.com created

    I also try with ProductService, and is not working

    abp generate-proxy -t ng -m ProductService -u https://localhost:44361 --target product-service [07:27:41 INF] ABP CLI (https://abp.io) [07:27:42 INF] Version 5.3.2 (Stable) npm WARN config global --global, --local are deprecated. Use --location=global instead. [Invalid Module] Backend module "ProductService" does not exist in API definition.

  • User Avatar
    0
    mmaldonado@emscltd.com created

    Hello,

    Currently, proxy generation in angular microservice templates needs extra steps. We will work on this. Please follow steps in gist

    Note: Url parameter for angular proxy generation started to be supported in abp cli 5.2.2 and @abp/ng.schematics package version 5.2.2.

    not working

  • User Avatar
    1
    alper created
    Support Team Director

    hi, we send you an email containing the related files

  • User Avatar
    0
    mmaldonado@emscltd.com created

    hi, we send you an email containing the related files

    thank you very much, by the way, could you help me keep me posted when this functionality works for microservice template please, I am updating the service definition all the time

  • User Avatar
    0
    mmaldonado@emscltd.com created

    hi, we send you an email containing the related files

    Could you re-send me again that mail please, I do not see it on my inbox

  • User Avatar
    0
    alper created
    Support Team Director

    your email rejects.

    'mmaldonado@emscltd.com' on 21.07.2022 11:05  552 5.7.0 message content and attachment content guidelines. ku7-20020a170907788700b007052b183d51sm547237ejc.132 - gsmtp
    

    Probably your email provider doesn't accept archive files containing code. We'll share with you a Google Drive link.

  • User Avatar
    0
    mmaldonado@emscltd.com created

    thank you so much

  • User Avatar
    0
    alper created
    Support Team Director

    No problem. hope it solves...

  • User Avatar
    0
    mmaldonado@emscltd.com created

    is this problem fixed on the new Abp.CLI 5.3.3 ?

  • User Avatar
    0
    mmaldonado@emscltd.com created

    No problem. hope it solves...

    the code that you sent me was just related to product, I still need to create the ng proxies for my services

  • User Avatar
    0
    muhammedaltug created

    Hello,

    The range error does not seem related to the microservice template. You can look at the another support question.

    I was able to reproduce the range error. You can follow the status of issue

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38