Open Closed

Volo.Abp.Http.Client.AbpRemoteCallException: 'Unsupported Media Type' #8543


User avatar
0
PerigisettiVenkateswaraRao created
  • ABP Framework version: v8.2.1
  • UI Type: Angular
  • Database System: EF Core (MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): Auth Server Separated
  • Exception message and full stack trace:
  • Steps to reproduce the issue: In my microservice template, I need to call the Service B from the Service A. Following the documentation for Synchronous Interservice Communication, I implemented the integration. However, when attempting to call the API, I encountered the following exception
Volo.Abp.Http.Client.AbpRemoteCallException: 'Unsupported Media Type'
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

5 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Here is a similar question, can you share your code

    https://abp.io/support/questions/2803/VoloAbpHttpClientAbpRemoteCallException-Unsupported-Media-Type

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    PerigisettiVenkateswaraRao created

    Here is a similar question, can you share your code

    https://abp.io/support/questions/2803/VoloAbpHttpClientAbpRemoteCallException-Unsupported-Media-Type

    After modifying it at the controller level, it worked. However, I am still unable to access CurrentUser in Service B. Additionally, the Service B method is only triggered when I annotate the API method with AllowAnonymous. I have installed the Volo.Abp.Http.Client.IdentityModel package in the Host module of Service A and configured it in HttpApi.HostModule.cs as outlined in the documentation.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    I have installed the Volo.Abp.Http.Client.IdentityModel package in the Host module of Service A and configured it in HttpApi.HostModule.cs as outlined in the documentation.

    Please share your code and appsettings configuration

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    PerigisettiVenkateswaraRao created

    I have installed the Volo.Abp.Http.Client.IdentityModel package in the Host module of Service A and configured it in HttpApi.HostModule.cs as outlined in the documentation.

    Please share your code and appsettings configuration

    Please confirm if the appsettings below look correct, and I will proceed to share the code. appsettings.json (Service A)

    "RemoteServices": {
      "Default": {
        "BaseUrl": "https://localhost:44325"
      },
      "ServiceB": {
        "BaseUrl": "https://localhost:44371/",
        "UseCurrentAccessToken": true
      }
    },
    "IdentityClients": {
      "Default": {
        "GrantType": "client_credentials",
        "ClientId": "AdministrationService",
        "ClientSecret": "1q2w3e*",
        "Authority": "https://localhost:44322",
        "Scope": "Service B"
      }
    },
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Try install Volo.Abp.Http.Client.IdentityModel.Web package and add the module dependency

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.