com.mycompany.myapi.ApiException: Content type "application/xml;charset=UTF-8" is not supported

GitHub | cacti77 | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Default Java client does not support Content-Type "application/xml"

    GitHub | 5 months ago | cacti77
    com.mycompany.myapi.ApiException: Content type "application/xml;charset=UTF-8" is not supported

    Root Cause Analysis

    1. com.mycompany.myapi.ApiException

      Content type "application/xml;charset=UTF-8" is not supported

      at com.mycompany.myapi.ApiClient.serialize()
    2. com.mycompany.myapi
      DefaultApi.modelsPostWithHttpInfo
      1. com.mycompany.myapi.ApiClient.serialize(ApiClient.java:889)
      2. com.mycompany.myapi.ApiClient.buildCall(ApiClient.java:1105)
      3. com.mycompany.myapi.client.DefaultApi.modelsPostCall(DefaultApi.java:523)
      4. com.mycompany.myapi.client.DefaultApi.modelsPostWithHttpInfo(DefaultApi.java:544)
      4 frames