Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cli use of local templates crash while fail to access abp.io site #3323

Closed
sam0817 opened this issue Mar 24, 2020 · 5 comments · Fixed by #3338
Closed

Cli use of local templates crash while fail to access abp.io site #3323

sam0817 opened this issue Mar 24, 2020 · 5 comments · Fixed by #3338

Comments

@sam0817
Copy link

sam0817 commented Mar 24, 2020

I have trouble creating template while abp.io is NOT available to access. so i create a local source template. still not working while abp.io unavailable.

here is error message

System.Exception: Remote server returns '502-Bad Gateway'. 
   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.GetLatestSourceCodeVersionAsync(String name, String type) in D:\ci\Jenkins\workspace\ABP_Framework_Release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\AbpIoSourceCodeStore.cs:line 113
   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 51
   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 50
   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 102
   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

if it is possible to work without abp.io access while using local template?

thanks

@realLiangshiwei
Copy link
Member

The CLI checks the CLI version before using the command. So keeping abp.io always online is the best way

@zhk0603
Copy link

zhk0603 commented Mar 24, 2020

I cannot access abp.io
Error 502 Bad gateway

@maliming
Copy link
Member

@zhk0603 We're checking abp.io problems.

@sam0817
Copy link
Author

sam0817 commented Mar 24, 2020

The CLI checks the CLI version before using the command. So keeping abp.io always online is the best way

Or if it is possible to skip the check while abp.io is not available. Somehow abp.io crash many times.
Maybe while abp.io is not available, then using cli version as default.

thanks for your input.

@maliming maliming added this to the 2.4 milestone Mar 24, 2020
@maliming maliming self-assigned this Mar 24, 2020
@realLiangshiwei
Copy link
Member

realLiangshiwei commented Mar 24, 2020

@sam0817 I will try to implement it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants