(415) Unsupported Media Type when POST a contact

SOLVE
Highlighted
Regular Contributor

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

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Highlighted
New Member

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

2 Replies 2
Highlighted
New Member

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

Highlighted
Regular Contributor

Thank you @jonlmiller !   

 

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

 

--Allan  

Reply
0 Upvotes