Getting 406 error when going to the GET hotels resource
cosbor11 opened this issue · 3 comments
cosbor11 commented
Step To Reproduce:
-
Build project
-
Run
java - jar -Dspring.profiles.active=test target/spring-boot-example-0-1.0.war
-
Go to
localhost:8090/example/v1/hotels?page=0&size=10
ISSUE: 406 error returned
khoubyari commented
Hi!
Did you provide the following HTTP header when you made the call
Content-Type: application/json
cosbor11 commented
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.
khoubyari commented
OK Thanks for the response. Since it's the likely cause, I will close this.