Open Closed

How to run generate proxy without internet access? #2288


User avatar
0
nhontran created

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v3.3.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi, I am working on my corporate laptop with have limit on the internet access, we have our own npm registry, what should I do to be able to run the abp generate-proxy without internet access, so far I got the error below:

[13:42:20 INF] ABP CLI (https://abp.io)
[13:42:21 INF] Version 3.3.2 (Stable)
[13:42:22 WRN] 1. HTTP request attempt failed to https://abp.io/api/app/nugetPackage/proPackageNames with an error: 403-Forbidden. Waiting 2 secs for the next try...
[13:42:25 WRN] 2. HTTP request attempt failed to https://abp.io/api/app/nugetPackage/proPackageNames with an error: 403-Forbidden. Waiting 4 secs for the next try...
[13:42:29 WRN] 3. HTTP request attempt failed to https://abp.io/api/app/nugetPackage/proPackageNames with an error: 403-Forbidden. Waiting 7 secs for the next try...
[13:42:36 ERR] Remote server returns '403-Forbidden'.
[13:42:37 WRN] 1. HTTP request attempt failed to https://api.nuget.org/v3-flatcontainer/volo.abp.cli/index.json with an error: 403-Forbidden. Waiting 2 secs for the next try...
[13:42:39 WRN] 2. HTTP request attempt failed to https://api.nuget.org/v3-flatcontainer/volo.abp.cli/index.json with an error: 403-Forbidden. Waiting 4 secs for the next try...
[13:42:43 WRN] 3. HTTP request attempt failed to https://api.nuget.org/v3-flatcontainer/volo.abp.cli/index.json with an error: 403-Forbidden. Waiting 7 secs for the next try...
[13:42:51 WRN] Unable to retrieve the latest version
[13:42:51 WRN] Remote server returns '403-Forbidden'.
[13:42:51 WRN] Couldn't determinate version of "@abp/ng.schematics" package.
[API Not Available] Please double-check the URL in the source project environment and make sure your application is up and running.

Thank you.


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Please double-check the URL in the source project environment and make sure your application is up and running.

    See https://docs.abp.io/en/abp/3.1/CLI#generate-proxy

    Generates Angular service proxies for your HTTP APIs to make easy to consume your services from the client side. Your host (server) application must be up and running before running this command.

  • User Avatar
    0
    nhontran created

    Hi @liangshiwei, thanks, my host (server) application was not running when I ran the generate-proxy command.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 19, 2024, 12:56