Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
62 views

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(...
king_potato's user avatar
0 votes
1 answer
92 views

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 ...
Jennifer G.'s user avatar
0 votes
2 answers
91 views

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 ...
Iscee's user avatar
  • 1
0 votes
1 answer
92 views

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 = &...
BluePrint's user avatar
  • 2,154
0 votes
1 answer
237 views

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 ...
TerenceJackson's user avatar
0 votes
1 answer
575 views

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) => { ...
Zahid Mustafa's user avatar
0 votes
0 answers
122 views

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 ...
Poorna's user avatar
  • 137
1 vote
0 answers
77 views

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....
mykhailo ryzhanovskyi's user avatar
2 votes
0 answers
464 views

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 ...
TCH's user avatar
  • 769
0 votes
1 answer
748 views

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 ...
STF's user avatar
  • 1,511
1 vote
2 answers
574 views

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 ...
Radek's user avatar
  • 41
1 vote
1 answer
2k views

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 ...
Kathir's user avatar
  • 67
0 votes
1 answer
531 views

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 ...
Ian's user avatar
  • 43
-1 votes
1 answer
3k views

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 ...
Rasheeda Rahimi's user avatar
2 votes
1 answer
429 views

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. ...
DAIRAV's user avatar
  • 731
1 vote
2 answers
850 views

I have following rest controller RestController.class: @AllArgsConstructor @RestController @RequestMapping(value = "/foo", produces = APPLICATION_JSON_VALUE) @Api(value = "...
Serwur's user avatar
  • 11
0 votes
1 answer
739 views

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 ...
Alexandre's user avatar
  • 329
0 votes
1 answer
809 views

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 ...
dro dro's user avatar
  • 21
0 votes
1 answer
148 views

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, ...
Tati K's user avatar
  • 1
0 votes
1 answer
689 views

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 ...
user2486322's user avatar
0 votes
1 answer
82 views

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 ...
Volodymyr Lipovskyi's user avatar
1 vote
2 answers
117 views

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) { ...
ddola's user avatar
  • 21
0 votes
1 answer
1k views

I am trying to access a public API with a POST Method and with the following JSON body: { "params": { "companyId":"620e91a211b42421733aa2b4&...
ilsologheo00's user avatar
2 votes
1 answer
4k views

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,...
Vincent BDL's user avatar
0 votes
1 answer
293 views

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(&...
Keerthi Senthil's user avatar
0 votes
0 answers
136 views

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 ...
Михаил Димитров's user avatar
2 votes
1 answer
3k views

First of all, here is a POST mapping that DOES work : app.MapPost("formulary/uploadSingle/{oldSys}/{newSys}", async (HttpRequest request, string oldSys, string newSys) => ...
Martin's user avatar
  • 2,326
0 votes
2 answers
450 views

I have a DRF server that accepts the following renders and parsers: "renders": [ "application/json", "text/html" ], "parses": [ "multipart/...
Artemii Khristich's user avatar
1 vote
1 answer
173 views

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 ...
xaos's user avatar
  • 21
2 votes
2 answers
7k views

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 ...
IStyped's user avatar
  • 21
0 votes
1 answer
2k views

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:\> $...
Sandeep Bhutani's user avatar
0 votes
0 answers
199 views

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;...
SwimMaster's user avatar
1 vote
1 answer
455 views

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() { ...
PLSHELP's user avatar
  • 61
1 vote
0 answers
358 views

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 ...
M.S.'s user avatar
  • 11
1 vote
1 answer
1k views

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 ...
Joseph Menard's user avatar
0 votes
0 answers
707 views

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", ...
blies's user avatar
  • 41
0 votes
1 answer
7k views

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 ...
Barbara's user avatar
  • 39
-1 votes
1 answer
96 views

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/{...
cuneyttyler's user avatar
  • 1,395
-2 votes
1 answer
2k views

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",&...
Hướng Phan Ngọc's user avatar
0 votes
1 answer
849 views

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 ...
redbite's user avatar
  • 261
0 votes
1 answer
637 views

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 ...
Ashish's user avatar
  • 77
1 vote
0 answers
723 views

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 ...
Khalid's user avatar
  • 279
0 votes
0 answers
709 views

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(...
Griffin Hines's user avatar
1 vote
1 answer
535 views

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 ...
Tom Talvitie's user avatar
0 votes
1 answer
688 views

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( ...
user123321's user avatar
2 votes
0 answers
2k views

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....
prof958's user avatar
  • 23
0 votes
4 answers
588 views

I have the following POST endpoint that uses jax-rs framework: @POST @NoCache @Path("/{client}/email/template/type/{type}") public void sendEmail( @PathParam("client&...
java12399900's user avatar
  • 1,719
2 votes
2 answers
3k views

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 ...
Neil's user avatar
  • 111
1 vote
2 answers
4k views

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 ...
Tolunay Toprakkaya's user avatar
0 votes
1 answer
67 views

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, ...
Ricardo Figueiredo's user avatar