This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Accept
Reject
  • RSA.com
  • Home
  • Advisories
    • SecurID
    • SecurID Governance & Lifecycle
  • Documentation
    • SecurID
      • Authentication Agents
        • API / SDK
        • Apache Web Server
        • Citrix StoreFront
        • IIS Web Server
        • MFA Agent for macOS
        • MFA Agent for Windows
        • Microsoft AD FS
        • Microsoft Windows
        • PAM
      • Authentication Engine
      • Authentication Manager
      • Cloud Authentication Service
      • Hardware Appliance
        Component Updates
      • Hardware Tokens
      • Integrations
      • SecurID App
      • SecurID Authenticator for macOS
      • SecurID SDK
      • Software Tokens
        • Android
        • iOS
        • macOS
        • Token Converter
        • Windows
    • SecurID Governance & Lifecycle
    • Technology Partners
  • Downloads
    • SecurID
      • Authentication Agents
        • API / SDK
        • Apache Web Server
        • Citrix StoreFront
        • IIS Web Server
        • MFA Agent for macOS
        • MFA Agent for Windows
        • Microsoft AD FS
        • Microsoft Windows
        • PAM
      • Authentication Engine
      • Authentication Manager
      • Cloud Authentication Service
      • Hardware Appliance
        Component Updates
      • Hardware Tokens
      • Integrations
      • SecurID Authenticator for macOS
      • Software Tokens
        • Android
        • iOS
        • macOS
        • Token Converter
        • Windows
    • SecurID Governance & Lifecycle
  • Community
    • SecurID
      • Blog
      • Discussions
      • Events
      • Idea Exchange
      • Knowledge Base
    • SecurID Governance & Lifecycle
      • Blog
      • Discussions
      • Events
      • Idea Exchange
      • Knowledge Base
  • Support
    • Case Portal
      • Create New Case
      • View My Cases
      • View My Team's Cases
    • Community Support
      • Getting Started
      • News & Announcements
      • Ideas & Suggestions
      • Community Support Articles
      • Community Support Forum
    • Product Life Cycle
    • Support Information
    • General Security Advisories
  • Education
    • Blog
    • Browse Courses
      • SecurID
      • SecurID Governance & Lifecycle
    • Certification Program
    • New Product Readiness
    • Student Resources
Sign In Register Now
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
Announcements

The email address for SecurID Community notifications is changing

View Details

SecurID® Governance & Lifecycle Knowledge Base

Find answers to your questions and identify resolutions for known issues with knowledge base articles written by SecurID Governance & Lifecycle experts.
  • SecurID Community
  • :
  • Products
  • :
  • SecurID Governance & Lifecycle
  • :
  • Knowledge Base
  • :
  • Generic REST Collector test fails with 'Unexpected response content type received. Expected content ...
  • Options
    • Subscribe to RSS Feed
    • Bookmark
    • Subscribe
    • Email to a Friend
    • Printer Friendly Page
    • Report Inappropriate Content

Generic REST Collector test fails with 'Unexpected response content type received. Expected content type is: application/json but received:{1}' in RSA Identity Governance & Lifecycle

Article Number

000038994

Applies To

RSA Product Set: RSA Identity Governance & Lifecycle
RSA Version/Condition: 7.2.0
 

Issue

When testing the generic REST collector (Collectors > {Collector type} > {Collector name} > Test), the following error occurs: 
 
Unexpected response content type received. Expected content type is: application/json but received:{1}
Check logs for details.

 
Image descriptionImage description

The Request Headers in the collector definition are configured as follows:
Image descriptionImage description


The following error is logged to the aveksaServer.log file ($AVEKSA_HOME/wildfly/standalone/log/aveksaServer.log):
04/30/2020 17:08:43.611 ERROR (ApplyChangesPerformQueryThread-372) 
[com.aveksa.client.genericrest.postprocessor.impl.GenericRESTPostprocessorImpl] 
Unexpected response content type: { Expected: application/json, Received: , Response Content: {"d":{"results":[{"__metadata": ...
...
04/30/2020 17:08:43.613 ERROR (ApplyChangesPerformQueryThread-372) 
[com.aveksa.collector.generic.rest.adc.GenericRESTAccountDataReader] 
Error in Test Rest API:  com.aveksa.client.genericrest.GenericRestException: UNEXPECTED_RESPONSE_CONTENT_TYPE application/json 
at com.aveksa.client.genericrest.GenericRestException.connectionError(GenericRestException.java:108)
 
Please refer to RSA Knowledge Base Article 000030327 -- Artifacts to gather in RSA Identity Governance & Lifecycle to find the location of the aveksaServer.log file for your specific deployment if you are on a WildFly cluster or a non-WildFly platform. The aveksaServer.log may also be downloaded from the RSA Identity Governance & Lifecycle user interface (Admin > System > Server Nodes tab > under Logs.)
 

Cause

This error may occur when the data source returns a response header in lowercase, i.e. content-type. The RSA Identity Governance & Lifecycle collector incorrectly expects the response header to be in camelCase, i.e. Content-Type.
An example of a datasource that returns a lowercase response header is SAP as seen when using a software development tool such as Postman to test the API:
 
Image descriptionImage description

 

Resolution

This issue is resolved in the following versions.
  • RSA Identity Governance & Lifecycle 7.2.0 P02
  • RSA Identity Governance & Lifecycle 7.2.1

Notes

Note that the "Unexpected response content type error" occurs whenever the error response does not match the expected type.  This article only documents one such instance of this error. Unless all the symptoms match this article, you do not have this issue. 

 

Tags (58)
  • 7
  • 7.2
  • 7.2.0
  • 7.2.0.x
  • 7.2.x
  • 7.x
  • API
  • Aveksa
  • Break Fix
  • Break Fix Issue
  • Broken
  • Collection
  • Collector
  • Community
  • Community Issue
  • Customer Support Article
  • Data Collection
  • Data Collector
  • GUI
  • Identity
  • Identity G&L
  • Identity Governance & Lifecycle
  • Identity Governance and Lifecycle
  • IG&L
  • IGL
  • Improper Behavior
  • Incorrect Behavior
  • Issue
  • Issues
  • Jive
  • Jive Issue
  • KB Article
  • Knowledge Article
  • Knowledge Base
  • Link Issue
  • Odd Behavior
  • Problem
  • RSA Identity
  • RSA Identity G&L
  • RSA Identity Governance & Lifecycle
  • RSA Identity Governance and Lifecycle
  • RSA Link
  • RSA Link Issue
  • Strange Behavior
  • Support Portal
  • UI
  • UI Issue
  • User Interface
  • User Interface Issue
  • Version 7
  • Version 7.2
  • Version 7.2.0
  • Version 7.2.0.x
  • Version 7.2.x
  • Version 7.x
  • Web Services
  • Web Services API
  • Website Issue
0 Likes
Was this article helpful? Yes No
Share
No ratings

In this article

Version history
Last update:
‎2021-02-24 09:19 AM
Updated by:
Administrator RSA-KB-Sync Administrator

Related Content

Powered by Khoros
  • Blog
  • Events
  • Discussions
  • Idea Exchange
  • Knowledge Base
  • Case Portal
  • Community Support
  • Product Life Cycle
  • Support Information
  • Customer Success
  • About the Community
  • Terms & Conditions
  • Privacy Statement
  • Provide Feedback
  • Employee Login
© 2022 RSA Security LLC or its affiliates. All rights reserved.