khoubyari/spring-boot-rest-example

Getting 406 error when going to the GET hotels resource

cosbor11 opened this issue · 3 comments

Step To Reproduce:

  1. Build project

  2. Run java - jar -Dspring.profiles.active=test target/spring-boot-example-0-1.0.war

  3. Go to localhost:8090/example/v1/hotels?page=0&size=10

    ISSUE: 406 error returned

Hi!

Did you provide the following HTTP header when you made the call

Content-Type: application/json

Oh shoot! This was 3 months ago so I don't remember for sure, I'm assuming that I was probably just doing a get request with the chrome.

OK Thanks for the response. Since it's the likely cause, I will close this.