Starts in:
1 DAY
20 HRS
40 MIN
21 SEC
Starts in:
1 D
20 H
40 M
21 S
Open Closed

Creating new BookStore sample following the user guide - error 500-Internal Server Error from CLI #336


User avatar
0
hamberg created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v3.0.5
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

This seems like a bug, error due to abp.io webservice.

I ran the example yesterday from my laptop at home and it worked. This morning I went to the office and ran the same sample project and it fails with an error 500. I also tried to create the project from the suite and it fails as well. Both failures never creates a project just the sub project folder. The web service seems to bt down and that is why it is failing. Below is the output window of the cli error.

I rather use the cli instead of the suite because it has the option to create app-pro so many of the nugets are already done.

The command I ran was:

C:\Projects\BookStore>abp new Acme.BookStore -t app-pro --tiered [11:28:24 INF] ABP CLI (https://abp.io) [11:28:24 INF] Version 3.0.5 (Stable channel) [11:28:25 INF] Creating your project... [11:28:25 INF] Project name: Acme.BookStore [11:28:25 INF] Template: app-pro [11:28:25 INF] Tiered: yes [11:28:25 INF] Mobile App: ReactNative [11:28:25 INF] Output folder: C:\Projects\BookStore\Acme.BookStore Error occured while getting the latest version from https://abp.io/api/download/template/get-version/ : Remote server returns '500-Internal Server Error'. Message: An internal error occurred during your request! [11:28:27 WRN] The remote service is currently unavailable, please specify the version. [11:28:27 WRN] [11:28:27 WRN] Find the following template in your cache directory: [11:28:27 WRN] Template Name Version [11:28:27 WRN] app pro-3.0.5 [11:28:27 WRN] [11:28:27 WRN] Use command: abp new Acme.BookStore -v version

I also ran as the result say: abp new Acme.BookStore -v version

C:\Projects\BookStore>abp new Acme.BooStore -v version [11:30:25 INF] ABP CLI (https://abp.io) [11:30:26 INF] Version 3.0.5 (Stable channel) [11:30:27 INF] Creating your project... [11:30:27 INF] Project name: Acme.BooStore [11:30:27 INF] Version: version [11:30:27 INF] Mobile App: ReactNative [11:30:27 INF] Output folder: C:\Projects\BookStore\Acme.BooStore [11:30:29 INF] Downloading template: app, version: version Error occured while downloading source-code from https://abp.io/api/download/template/ : Remote server returns '500-Internal Server Error'. [11:30:30 ERR] Remote server returns '500-Internal Server Error'. System.Exception: Remote server returns '500-Internal Server Error'. at Volo.Abp.Cli.ProjectBuilding.RemoteServiceExceptionHandler.EnsureSuccessfulHttpResponseAsync(HttpResponseMessage responseMessage) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\RemoteServiceExceptionHandler.cs:line 44 at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.DownloadSourceCodeContentAsync(SourceCodeDownloadInputDto input) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\AbpIoSourceCodeStore.cs:line 220 at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.GetAsync(String name, String type, String version, String templateSource) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\AbpIoSourceCodeStore.cs:line 107 at Volo.Abp.Cli.ProjectBuilding.TemplateProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\TemplateProjectBuilder.cs:line 56 at Volo.Abp.Cli.Commands.NewCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\NewCommand.cs:line 128 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 55

This errors out as well.

I then used my laptop where it worked before and tried it again and it fails as well with the same errors so I know that it is not specific the pc I am working on at the office.

It appears that the generation of a project is dependent on the webservices even after downloading the suite. So if the webservice is down the developer can't work if he is starting a new project. What is the workaround for this as I am now stuck just getting started?


4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We have confirmed the problem and we will fix it as soon as possible.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The problem has been fixed. You can try it again.

  • User Avatar
    0
    hamberg created

    Hello,

    The cli below is now working again.

    abp new <project> -t app-pro --tiered

    Could you please credit back my support account, as this was an issue with abp.io webservice?

    Thank you

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi @hamberg The remaining count of your questions has been +1. (15 now)

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06