Questions tagged [http-status-code-415]

HTTP status code for Unsupported Media Type

This is usually because of typos in Content-Type header. Or in the rare case, where you're really sending unsupported media.

MDN Documentation

155 questions
1
vote
2 answers

Http status 415 Unsupported Media type error with JSON POST

I get the HTTP 415 Unsupported Media Type error when I try to send a POST request to the server. Content-Type: application/json does not solve the problem. The get method works fine. I understand that it may be a matter of ManyToOne dependency, but…
IStyped
  • 11
  • 1
  • 3
1
vote
0 answers

Apache CXF returns HTTP 415 Unsupported Media Type after upgrading TomEE 9.0.0-M2 to 9.0.0-M7

I wrote a simple RestApi a year ago which runs without any problems on Tomee Plus 9.0.0-M2. Now I downloaded the newest Tomee Plus 9.0.0-M7 and get following response on every request: HTTP 415 Unsupported Media Type The console output is: No…
M.S.
  • 11
  • 2
1
vote
1 answer

HTTP POST request works with Postman but not with my web application's JavaScript fetch

I have a test environment in which I develop a website. This JavaScript code gives an error "415 unsupported media". const sendData = async () => { const result = await fetch(`${databaseURL}/categories`, { method: 'POST', headers: new…
1
vote
1 answer

github API check_runs returning 415, "Unsupported Media Type"

really that simple, making a request with github api: https://docs.github.com/en/rest/reference/checks#list-check-runs-for-a-git-reference I am trying to find the check runs for a particular branch I have. Below is the url I GET from: url =…
1
vote
2 answers

http-proxy-middleware proxy is not working in React js and Spring Boot project. GET API is return 415 status error

I'm using the http-proxy-middleware middle ware. Content-Type: application/json is must be add in API's headers while execute with postman. I added my API's header configuration in React. I think the error is caused by I dont send headers corrently.…
1
vote
1 answer

415 Unsupported Media Exception even after setting application/soap+xml for SOAP 1.2 call

I am getting org.springframework.ws.client.WebServiceTransportException: Unsupported Media Type [415] when trying for a SOAP call. The code is as follows: public class SoapClient extends WebServiceGatewaySupport { public RunReportResponse…
1
vote
1 answer

SignalR HubConnectionBuilder Generates HTTP 415 Error

Setup: Angular 10 web app Net Core Web API app On my laptop, my signalR app works just fine over websockets. Once deployed to a standalone server over SSE, the HubConnectionBuilder/Start(), generates a 415 Unsupported Media Type on my POST…
LargeDachshund
  • 916
  • 3
  • 12
  • 25
1
vote
1 answer

Setup gRPC DB-less API gateway: 415 Unsupported Media Type

I am current setup kong for my project. originally, server is monolith architecture), my team want to separate it into microservice. As my project using gRPC to communicate between client and server, I am thinking of using an API gateway support…
1
vote
2 answers

415 on fetch POST with multipart FormData

I have been going over countless posts and I am just stumped with this which should be so simple. let formData = new FormData(); formData.append('message', payload.message); formData.append('attachment', this.state.attachment); let options = { …
naspinski
  • 34,020
  • 36
  • 111
  • 167
1
vote
1 answer

DocuSign REST API INVALID_CONTENT_TYPE sending envelope from template with application/json

I am using Google Apps Script to make a URL request to https://demo.docusign.net/restapi/v2.1/accounts/ACCOUNT-ID/envelopes (where ACCOUNT-ID is my proper numerical account ID.) It's being sent with the code UrlFetchApp.fetch(url, params). params…
1
vote
0 answers

"POST /upload HTTP/1.1" 415 - video upload issues

it shows that 415 status code flask server the source code https://github.com/MixedEmotions/EmotionService/tree/master/service
Chandan
  • 571
  • 4
  • 21
1
vote
0 answers

In WordPress adding ical event, Received unknown HTTP status

Getting HTTP/1.1 415 Unsupported Media Type for Adding an iCal event through wordpress-ajax. I already created CAlDAC account in phone, In localhost its working fine.. but problem is when uploading same code in server.. its not working.. In ajax…
1
vote
0 answers

In PHP, While adding events in icalendar through CALDAV protocol, Received unknown HTTP status

I am working on project based on inserting events in icalendar(iPhone) through CALDAV protocol using PHP language In localhost the code is working fine.. when adding the same code to server using some functions, received unknown HTTP status.. I…
Nischinth
  • 21
  • 1
  • 2
1
vote
1 answer

python requests: PUT request to azure fails with 415 error

So I'm trying to use python requests to make a PUT request to Azure (to create/update notification hub - https://learn.microsoft.com/en-us/rest/api/notificationhubs/notificationhubs/createorupdate#mpnscredential . My code: url =…
1
vote
0 answers

Image File Upload 415 Unsupported Media Type Java Httpclient 4.4

I am trying to do a POST request with 1 file object and 2 texts filed as below. But always getting 415 Unsupported Media Type. I'm using httpclient 4.4. 415 error is mean to mistake in body or header? HttpPost request= new…