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

GitHub | cacti77 | 2 months ago
  1. 0

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

    GitHub | 2 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