Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 500 error when requesting endpoints with image/png #201

Open
ridoo opened this issue Aug 7, 2016 · 0 comments
Open

HTTP 500 error when requesting endpoints with image/png #201

ridoo opened this issue Aug 7, 2016 · 0 comments
Labels

Comments

@ridoo
Copy link
Member

ridoo commented Aug 7, 2016

Requesting an endpoint with an Accept: image/png or other not supported MimeType for that endpoint results in an HTTP 500 error, saying no appropriate rendering view could be found. So this leads to a spring configuration problem.

javax.servlet.ServletException: Could not resolve view with name 'v1/services' in servlet with name 'rest-dispatcher'
    at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1190)
    at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
@ridoo ridoo added the bug label Aug 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant