"Invalid response Content-Type: null" error when pairing On-Premises and Cloud sites in vCloud Availability
search cancel

"Invalid response Content-Type: null" error when pairing On-Premises and Cloud sites in vCloud Availability

book

Article ID: 314966

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:

  • After entering the vCloud Availability Cloud Site details and trusting the server certificate in the Cloud Details section when pairing sites from a vCloud Availability On-Premises appliance, you see the following error:
Operation aborted due to an unexpected error
  • In /opt/vmware/h4/replicator/logs/replicator.log on the vCloud Availability On-Premises appliance, you see the following message:
ERROR - [UI__########-####-####-####-########11c2_Q9] [https-jsse-nio-8440-exec-9] c.v.h.c.c.error.ExceptionAdvisorBase     : A POST request from root[10.201.0.2] to /clouds/check-credentials failed.

com.vmware.rest.client.exception.InvalidResponseContentTypeError: Invalid response Content-Type: null
        at com.vmware.rest.client.json.JsonConverter.checkJsonContentType(JsonConverter.java:131)
        at com.vmware.rest.client.json.JsonConverter.lambda$jsonResponseDeserializer$1(JsonConverter.java:94)


Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.

Environment

VMware vCloud Availability 3.0.x

Cause

This issue can occur when the address entered into the Pubic API Endpoint field is not the publicly accessible endpoint for the vCloud Availability Tunnel, but a different URL such as the vCloud Director Public API Endpoint.

Resolution

To resolve this issue, ensure you enter the the vCloud Availability Public API Endpoint in the Public API Endpoint field of the Cloud Details section in the Site Pairing Wizard.

Additional Information

  • For more information on where the vCloud Availability Public API Endpoint is set, see the Configure a vCloud Availability vApp Replication Manager Instance section of the vCloud Availability documentation.
  • For more information on performing an initial SIte Pairing from an On-Premises Site, see the Configure the On-Premises vCloud Availability Appliance section of the vCloud Availability documentation.