Open Closed

IntegrationService HttpClientProxyConfig Error #9469


User avatar
0
icoretchi created

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

Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • Exception message and full stack trace:

  • Steps to reproduce the issue:

  • Template: microservice

  • Created ABP Studio Version: 0.9.26

  • Current ABP Studio Version: 1.0.0

  • Multi-Tenancy: Yes

  • UI Framework: angular

  • Theme: leptonx

  • Theme Style: system

  • Run Install Libs: Yes

  • Database Provider: ef

  • Database Management System: sqlserver

  • Mobile Framework: none

  • Public Website: No

  • Include Tests: Yes

  • Dynamic Localization: Yes

  • Kubernetes Configuration: Yes

  • Grafana Dashboard: Yes

  • Use Local References: No

  • Optional Modules:

    • GDPR
    • FileManagement
    • TextTemplateManagement
    • AuditLogging
    • Chat
    • OpenIddictAdmin

Hi,

I am trying to implement inter microservices communication using Integration Services. Apparently I am doing everything correct according to the Abp documentation, but I am constantly receiving the following error:

Any ideas?


8 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • The error "Could not get HttpClientProxyConfig for ... IEmployeeIntegrationService" indicates that the client proxy for your integration service is not properly configured or registered in your consuming microservice.

    To resolve this, follow these steps:

    1. Expose Integration Services in the Provider Microservice

      • In the microservice that provides the integration service (e.g., EmployeeService), ensure you expose integration services in your module:
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpAspNetCoreMvcOptions>(options =>
            {
                options.ExposeIntegrationServices = true;
            });
        }
        
    2. Reference the HttpApi.Client Package in the Consumer Microservice

      • In the microservice that consumes the integration service, add a reference to the HttpApi.Client project of the provider microservice.
    3. Configure the Remote Service URL

      • In the consumer microservice's appsettings.json, set the base URL for the remote service:
        "RemoteServices": {
          "AbcEmployeeService": {
            "BaseUrl": "https://localhost:PORT"
          }
        }
        
      • The key (AbcEmployeeService) should match the remote service name used in your proxy registration.
    4. Register the Client Proxy

      • In the consumer microservice's module, register the static client proxy for the integration service:
        context.Services.AddStaticHttpClientProxies(
            typeof(Abc.EmployeeService.Application.Contracts.EmployeeServiceApplicationContractsModule).Assembly,
            "AbcEmployeeService"
        );
        
    5. Use the Integration Service Interface

      • Inject and use IEmployeeIntegrationService in your consumer microservice as needed.
    6. Restart All Services

      • After making these changes, rebuild and restart both the provider and consumer microservices.

    If you follow these steps, the error should be resolved and the integration service proxy will be available for HTTP calls between your microservices.

    Sources:

    • https://abp.io/docs/latest/framework/api-development/integration-services
    • https://abp.io/docs/latest/solution-templates/microservice/http-api-calls

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

  • User Avatar
    0
    icoretchi created

    I am doing exactly like Agent suggested, with a difference that I don't reference HttpApi.Client, I generated the ClientProxies but didn't help.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi icoretchi

    Could you please share the code and the steps you took?

    Thanks.

  • User Avatar
    0
    icoretchi created

    Hi,

    1. Interface in provided service Abc.EmployeeService.Contracs project:
    2. Implementation in provided service Abc.EmplyeeService project
    3. Expose integration service in provided service:
    4. Reference provided integration service interface in consumer service Abc. AcquisitionService:
    5. Configured remote service url:
    6. Generated client service proxies in consumer service Abc.AcquisitionService:
    7. Registered client proxies in consumer service Abc.AcqusitionService:
    8. Using of the integration service in consumer service:
  • User Avatar
    0
    icoretchi created

    I've also added the integration controller. In general is not need it as I know, but I've implemented just in case:

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Try to inherit from IApplicationService

    interface IEmployeeIntegrationService : IApplicationService
    

  • User Avatar
    0
    icoretchi created

    It's working. Thanks.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Great

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on July 09, 2025, 06:20