160 questions
0
votes
1
answer
62
views
Spring boot (Java) ManyToMany 415 error when sending POST
I have the most basic ManyToMany example, Project and Employee.
With a PUT request, I will project to employee and within the same function employee to project.
public Employee assignProjectToEmployee(...
0
votes
1
answer
92
views
Hubspot Form Submission returning 415 Unsupported Media Type
I have a simple HTML signup form posting to Hubspot. When I put the form in my website (via WordPress) it renders fine. When I enter values and press submit, the request is made, but the response ...
0
votes
2
answers
91
views
415 Unsupported Media Type in MockMvc Test
I am getting a 415 error while trying to test one of my @Controller's methods.
Here is my code.
Test Class:
@SpringBootTest(classes = APIController.class)
@AutoConfigureMockMvc
class APIControllerTest ...
0
votes
1
answer
92
views
Java Spring: Unsupported Media Type with x-www-form-urlencoded body
I'm working on a REST API using Spring and I'm trying to implement a POST endpoint that receives x-www-form-urlencoded data in it's body. This is my controller method so far:
@PostMapping(value = &...
0
votes
1
answer
237
views
415 Unsupported Media Type when trying to get access token for Hubspot OAuth
I am trying to get an access token for an OAuth with Hubspot via a node.js backend application. I am following the following description:https://developers.hubspot.com/docs/api/oauth-quickstart-guide
...
0
votes
1
answer
575
views
How to consume XML request in Minimal API getting Http 415
In minimal API i want to consume xml request but i am getting error
Bewlo is sample request
app.MapPost("api/todo/xml", async (
[FromBody] ToDoRequest request) =>
{
...
0
votes
0
answers
122
views
415 Unsupported Media Type error when sending a PUT request to a RESTCONF API via Http4s
I have a service that consumes RESTCONF API requests. I'm trying to send a PUT request to this service with a request body of type application/yang-data+xml (since RESTCONF requires the request body ...
1
vote
0
answers
77
views
.Net 7.0 how to fix https://tools.ietf.org/html/rfc7231#section-6.5.13","title":"Unsupported Media Type","status":415,"
When i trying to sign in or sign Up at my web app i receive this problem .
enter image description here
IAuthService:
using Ryzhanovskyi.University.Tinder.Models.Auth;
using Ryzhanovskyi.University....
2
votes
0
answers
464
views
HTTP error 415 Unsupported Media Type with service generated with OpenApi generator
I use openapi-generator-cli in an Angular project to generate all services from a Java API.
// package.json
"@openapitools/openapi-generator-cli": "2.11.0"
$ openapi-generator-cli ...
0
votes
1
answer
748
views
Confluence REST API content-type issue for attachment with python
I am trying to upload an attachment to Confluence using REST API from python. I get 415 error: unsupported media type.
I understand the content-type is not correct, but I tried some content types and ...
1
vote
2
answers
574
views
HttpMediaTypeNotSupportedException: Content-Type 'application/octet-stream' is not supported when running a SpringBoot REST app from AWS Lambda
I'm trying to run a Spring Boot application in AWS Lambda (various examples use basically the same approach as https://www.baeldung.com/spring-boot-aws-lambda, for example - just copy the code and ...
1
vote
1
answer
2k
views
Accept text/plain while @Consumes has application/json
We migrated a DropWizard based REST service to Quarkus based one (version: 2.16.7.Final) using quarkus-resteasy-reactive extension. The APIs where the @Consumes annotation has application/json started ...
0
votes
1
answer
531
views
Getting an 415 Error when posting to a SharePoint Calendar using an HTTP Request through Power Automate
I am attempting to update my SharePoint Events calendar using an HTTP Request step and so far I keep getting hung up on an 415 error. I see that my data is coming through in the tests, but it gets ...
-1
votes
1
answer
3k
views
.NET web API POST status error 415 unsupported media type
Coded a category controller and API that posts Title, Type and Icon but it is giving status 415 error (unsupported media type). I am trying to get my backend talking to a Python frontend.
need ...
2
votes
1
answer
429
views
font-awesome loading locally from project getting 415 (Unsupported Media Type)
Configured in the project to load "fontawesome.min.css" from the local project folder instead of from CDN. Followed the below steps and configuration, now getting 415 Unsupported Media type.
...
1
vote
2
answers
850
views
Spring Boot Unsupported Media Type 415 Content type '' not supported for request with empty parameters
I have following rest controller RestController.class:
@AllArgsConstructor
@RestController
@RequestMapping(value = "/foo", produces = APPLICATION_JSON_VALUE)
@Api(value = "...
0
votes
1
answer
739
views
OkHTTP3 Library gives me a 415 HTTP Error
I have a problem with OkHTTP3. I want to join an API endpoint with the library.
Firstly, I've created my request with Postman to test the API endpoint. After configuring the URL, the access token and ...
0
votes
1
answer
809
views
Keep getting Unsupported Media Type Error
My UI keeps getting an unsupported media type error when trying to get a response from an endpoint.
Postman actually gets a success using the same body and headers, hence I really don't understand ...
0
votes
1
answer
148
views
Why does the server refuses to accept the request and throws 415 error?
I'm trying to build a sign up form and connect frontend with a backend server using fetch. But I've come across with a problem, that the server doesn't approve the connection and throw 415 error, ...
0
votes
1
answer
689
views
415 Error when authenticating - Spring boot and RestTemplate
I am working on a third-party REST API and I am going to authenticate with their API by making a POST request to the provided end point. I tested this end point using Postman and it works fine, and ...
0
votes
1
answer
82
views
How to use two ContentTypes in one JSP(web app on Spring MVC): text/html && application/json
I'm developing a simple crud app without frontend, but I want to have a very simple visual for myself and the viewers.
Now I have created a simple jsp-file with a set of tags 'a'.
It was not difficult ...
1
vote
2
answers
117
views
sending http request to my server is incorrect
Frontend todo.ts and todo.html
Console.log
Postman
backend-code with spring boot //TodoService; function for Update
public Todos updateTodoWithMap(Long id, Map<Object, Object> objectMap) {
...
0
votes
1
answer
1k
views
Unsupported media type error with application/json specified
I am trying to access a public API with a POST Method and with the following JSON body:
{
"params": {
"companyId":"620e91a211b42421733aa2b4&...
2
votes
1
answer
4k
views
Angular 12 typescript upload files error 415 unsupported media type
I am trying to upload an image with angular 12 and spring boot,
the api on the back side behaves correctly for having tested it with postman.
When I test front side I get this error:
"status: 415,...
0
votes
1
answer
293
views
Getting 415 Error on updating using PUT method
I am using JWT spring security in backend and I would like to update user details in angular using PUT method. But I am getting 415 error on update.
Update method in springboot
controller
@PutMapping(&...
0
votes
0
answers
136
views
Esp8266 Post Request returns error code 415
I am currently developing a project where I want esp8266 to send data to Blazor Server App which is hosted on server, but the problem is the Post request to Blazor's server app api keeps returning ...
2
votes
1
answer
3k
views
Minimal API - 415 error when using multipart/form content type and custom body model [duplicate]
First of all, here is a POST mapping that DOES work :
app.MapPost("formulary/uploadSingle/{oldSys}/{newSys}",
async (HttpRequest request, string oldSys, string newSys) =>
...
0
votes
2
answers
450
views
Unsupported Media Type while PUT
I have a DRF server that accepts the following renders and parsers:
"renders": [
"application/json",
"text/html"
],
"parses": [
"multipart/...
1
vote
1
answer
173
views
React Fetch Method return 415
I'm trying post request by my react app and I have return status 415. I tested this endpoint by postman exactly which I got from this console.log(JSON.stringify(data.data)); and all is right. I notice ...
2
votes
2
answers
7k
views
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 ...
0
votes
1
answer
2k
views
MS Graph API message move - 415 unsupported media type
I have followed proper documentation and examples. Also other methods are working fine, but message move is not working properly. Please look at below and suggest what I should change:
PS C:\> $...
0
votes
0
answers
199
views
Unexpected HTTP 415 when sending JSON
Making an http request using axios to a spring backend and getting the following unexpected error.
Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;...
1
vote
1
answer
455
views
Java Jersey Consume Response is giving back 415 (unsupported media type)
Not sure what I have done wrong. I have my data model
Waypoint.java:
@XmlRootElement
public class Waypoint {
@XmlElement
private String test;
public String getTest() {
...
1
vote
0
answers
358
views
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 ...
1
vote
1
answer
1k
views
Issue with POST request with API oauth2 / return: error 415
I have some issues with an API with oauth2 authentication.
After I get the token, and I want to sent my POST request but it still gives me a 415 error (Unsupported Media Type). I'm sure my payload's ...
0
votes
0
answers
707
views
Why my WCF expects text/xml rather then application/json as I configured it?
I'm a newbie so please be patient, I've created a simple WCF method and this is my interface
public interface IService1
{
[OperationContract]
[WebInvoke(Method = "POST", ...
0
votes
1
answer
7k
views
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 ...
-1
votes
1
answer
96
views
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/{...
-2
votes
1
answer
2k
views
"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",&...
0
votes
1
answer
849
views
Fetch from s3 static website to Lambda function, through API Gateway, gives 415 Unsupported Media Type error
I am trying to make a fetch (method POST) from my s3 hosted static website to one of my lambda functions, which runtime language is nodejs, through API Gateway.
Following the snippets about HTML post ...
0
votes
1
answer
637
views
Updating a webpage using python requests returning error response code 415
I am trying to update an already existing page in Atlassian confluence page through the Python requests module. I am using the requests.put() method to send the http request to update my page. The ...
1
vote
0
answers
723
views
415 Unsupported Media Type Fetch POST request
I'm attempting to send a fetch POST request to a few 3rd party APIs. When testing this call in Postman I'm able to get a successful 200 response. Using the same code from Postman in my project returns ...
0
votes
0
answers
709
views
Springboot: 415 Unsupported Media Type
These are my headers: Headers
This error cropped up out of nowhere. I've been sending POST requests to my application without error for a while now. My Post method reads:
Controller:
@PostMapping(...
1
vote
1
answer
535
views
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 ...
0
votes
1
answer
688
views
Unsupported Media Type" message: "Content type '' - but works in POSTMAN
I have a problem. I try to call this GET method in ReactJS:
const API_URL="http://****/sample/";
class Service{
getKnjige(){
const token = getToken();
return axios.get(
...
2
votes
0
answers
2k
views
"error": "Unsupported Media Type" on Upload File Controller
I have a simple project that works on PDF files. I am trying to code a File Upload Controller.
I've tried lots of ways to do this but it keeps giving me this error :
Resolved [org.springframework.web....
0
votes
4
answers
588
views
POST with Jax-RS giving HTTP error code 415?
I have the following POST endpoint that uses jax-rs framework:
@POST
@NoCache
@Path("/{client}/email/template/type/{type}")
public void sendEmail(
@PathParam("client&...
2
votes
2
answers
3k
views
Is there a way to change the Content Type for a Postman OAuth 2 Client Credentials request?
I'm trying to use the built in tool to get an OAuth 2.0 token for my requests. This seems pretty straightforward when reading the documentation and I set it up like this:
The issue is that the ...
1
vote
2
answers
4k
views
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 ...
0
votes
1
answer
67
views
Why am i getting error 415 when trying to retrieve database information wiht angular?
I am learning Angular right now, and i am trying to make a POST into a API in asp.net core.
I went to the startup and made the cors since they were giving me problems. Now, my problem is an error 415, ...