spring-attic / tut-react-and-spring-data-rest

React.js and Spring Data REST :: A tutorial based on the 5-part blog series by Greg Turnquist
https://spring.io/guides/tutorials/react-and-spring-data-rest
882 stars 1.57k forks source link

Multiple content-type headers #94

Closed PeterJNelsonMN closed 5 years ago

PeterJNelsonMN commented 5 years ago

I cannot get the "create" to work on the Hypermedia example. It appears that the client is sending a content-type of "application/json, text/plain" which the REST server rightly sees as invalid.

It also looks like it's passing a string of "[object Object]' as the request body, which might be the root cause.

gregturn commented 5 years ago

Are you talking about your own client? Because I just ran hypermedia example, and did this with the current frontend client:

Screen Shot 2019-08-08 at 3 29 39 PM
gregturn commented 5 years ago

Feel free to reopen if you continue to have trouble with your client communicating with the server.