Open Closed

generate proxy csharp for remoıte service #4003


User avatar
0
ademaygun created
  • ABP Framework version: v5.3.3

  • UI type: Angular

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): no

  • Exception message and stack trace: Response status code does not indicate success: 404 (). System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken) at Volo.Abp.Cli.ServiceProxying.ServiceProxyGeneratorBase``1.GetApplicationApiDescriptionModelAsync(GenerateProxyArgs args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ServiceProxying\ServiceProxyGeneratorBase.cs:line 36

  • Steps to reproduce the issue:" Open a command-line terminal in the root folder of your client project:

 abp generate-proxy -t csharp -u "https://demo.channelengine.net/api/swagger"

I can use generate-proxy for my abp project url successfully . But I failed when using generate-proxy command in another url . Can I use generate-proxy command for any swagger url?


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

    hi

     abp generate-proxy -t csharp -u "https://demo.channelengine.net/"
    
  • User Avatar
    0
    ademaygun created

    I have already tried it, unfortunately I got same error

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The result of https://demo.channelengine.net/api/abp/api-definition is 404.

    It should return the api definitions.

  • User Avatar
    0
    ademaygun created

    it is an remote Url , channel engine is not our project :) Probably it is not an abp project. Can generate-proxy be run only for abp projects?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Yes, It is design for abp.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11