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
votes
1 answer

Spring boot: Getting 415 unsupported Media type

I am currently writing a spring boot backend with Rest-API and trying to write data against my database. When doing a put ot post request, some strange things happen. Most of the time I get a 415 unsupported media type error, but sometimes (for some…
Barbara
  • 29
  • 1
  • 5
-1
votes
1 answer

Spring, Angular.js 415 Unsupported Media Type Error

This simple request encounters with a 415 Unsuppoerted Media Type error. http://localhost:8080/semantic/api/getLastfmGraph/1 Here is my Controller code : @RequestMapping(value = "/getLastfmGraph/{userId}", method = RequestMethod.GET, consumes =…
cuneyttyler
  • 1,255
  • 2
  • 17
  • 27
-1
votes
1 answer

Error 415 when api rest call to update a django model

I'm using djangorestframework, django 2.1.4, and python 3.6+ I have a simple model that I'm trying to add via a script that uses requests. Even though I'm passing in the data via a json format, it is giving me a 415 error. What do I need to do to…
-1
votes
2 answers

NetworkError: 415 Unsupported Media Type - Tomcat on linux server

I am sending some json data to POST url. This code works fine in local environment (tomcat + windows) but does not works on production env (Tomcat + linux). Already referred to various links, but none helped me out. Issue os with production env,…
Ankur Singhal
  • 26,012
  • 16
  • 82
  • 116
-3
votes
1 answer

"title":"Unsupported Media Type","status":415 error when request API from python

Why is the same restful api API when I use it with react and java android I don't get error 415 but when I use python requests I get an error: "title":"Unsupported Media Type","status":415 URL =…
1 2 3
10
11