Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. stubFor(get(urlPathMatching("/myendpoint/"))
  2. .withHeader(ACCEPT, containing("application/json))
  3. .withHeader("Content-Length", equalTo("0"))
  4. .withHeader(AUTHORIZATION, equalTo("Bearer accessToken))
  5. .willReturn(aResponse()
  6. .withStatus(status)
  7. ));
  8.  
  9. org.springframework.web.client.HttpClientErrorException: 404 Not Found
  10. at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:88)
  11. at com.xoom.api.client.common.error.UnprocessableEntityResponseErrorHandler.handleError(UnprocessableEntityResponseErrorHandler.java:31)
  12. ....
  13.  
  14. org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class [Lcom.mypackage.myObject.] and content type [application/octet-stream]
  15.  
  16. org.springframework.web.client.HttpClientErrorException: 404 Not Found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement