No MediaTypeFormatter is available to read an object of type 'ClusterInfo' from content with media type 'text/html'.

admin-eGu 16 Reputation points
2022-10-18T12:40:54.46+00:00

Hi,

in azure data factory I wanted to test the connection of our new Databricks Workspace URL and ClusterID. I parameterized the linked service (LS) to global parameters databricksURL and databricksClusterID.

When I want to test the connection it is giving me following error: No MediaTypeFormatter is available to read an object of type 'ClusterInfo' from content with media type 'text/html'. . With the old databricks url and cluster ID it is working.
I created a token and everything. What is the error here?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,565 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,930 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 50,426 Reputation points
    2022-10-18T15:10:15.213+00:00

    I don't know how it was working before. The error itself indicates that the response (I assume) was HTML. There was no formatter available that could convert that HTML to the type ClusterInfo and therefore the call failed. Normally data is sent/received in JSON format. This could be just a simple matter of setting the correct request headers, if the error is coming from the server. Or, if it is coming from the response then perhaps you're getting an error message in HTML instead of the expected JSON data.