APIs & Integrations

Benchmark_achen
Participante

(415) Unsupported Media Type when POST a contact

resolver

Hi,

We have a process that posting contacts to Hubspot using API.  It has been working fine until today.  Starting today at around 2pm EST, it keeps on error out every time the process try to post a contact.  We use ZappySys SSIS component  ZS JSON Source (REST API or File) to post the contact record in a JSON format.

 

Below is the error message that we got.

Response Body: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 415 Unsupported Media Type</title>
</head>
<body><h2>HTTP ERROR 415</h2>
<p>Problem accessing /contacts/v1/contact/createOrUpdate/email/caren@stowevt.net. Reason:
<pre> Unsupported Media Type</pre></p>
</body>
</html>

 

Any Idea?

 

Thanks,

Allan

0 Avaliação positiva
1 Solução aceita
jonlmiller
Solução
Membro

(415) Unsupported Media Type when POST a contact

resolver

we started getting this error today as well. we hadn't been including the content-type header, but prior to this afternoon the API didn't mind. to fix the Error 415, we added this header to our post:

 

Content-Type: application/json

Exibir solução no post original

2 Respostas 2
jonlmiller
Solução
Membro

(415) Unsupported Media Type when POST a contact

resolver

we started getting this error today as well. we hadn't been including the content-type header, but prior to this afternoon the API didn't mind. to fix the Error 415, we added this header to our post:

 

Content-Type: application/json

Benchmark_achen
Participante

(415) Unsupported Media Type when POST a contact

resolver

Thank you @jonlmiller !   

 

Your suggestion by specifying the content-type = application/json fixed the issue.

 

--Allan  

0 Avaliação positiva