openanalytics / containerproxy

Manage HTTP proxy routes into Docker containers
Apache License 2.0
45 stars 66 forks source link

403 Error Method Not Allowed when trying to upload file #17

Closed creiche closed 5 years ago

creiche commented 5 years ago

When trying to upload a file through ShinyProxy to a shiny app using a fileInput, we receive:

Error

Status code: 405 Message: Method Not Allowed Stack Trace: n/a

ShinyProxy logs show:

2019-03-28 20:12:15.615 DEBUG 1 --- [ XNIO-2 task-4] o.s.web.servlet.DispatcherServlet : DispatcherServlet with name 'dispatcherServlet' processing POST request for [/app_direct/shiny-mkt-campaign-recommendations/session/43b642bdfe4ca8a30f87b33c66d57200/upload/6ecc2cdeea2fc3052a0e00aa]

  | 2019-03-28 20:12:15.615 DEBUG 1 --- [ XNIO-2 task-4] s.w.s.m.m.a.RequestMappingHandlerMapping : Looking up handler method for path /app_direct/shiny-mkt-campaign-recommendations/session/43b642bdfe4ca8a30f87b33c66d57200/upload/6ecc2cdeea2fc3052a0e00aa   | 2019-03-28 20:12:15.616 DEBUG 1 --- [ XNIO-2 task-4] .m.m.a.ExceptionHandlerExceptionResolver : Resolving exception from handler [null]: org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' not supported   | 2019-03-28 20:12:15.616 DEBUG 1 --- [ XNIO-2 task-4] .w.s.m.a.ResponseStatusExceptionResolver : Resolving exception from handler [null]: org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' not supported   | 2019-03-28 20:12:15.616 DEBUG 1 --- [ XNIO-2 task-4] .w.s.m.s.DefaultHandlerExceptionResolver : Resolving exception from handler [null]: org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' not supported   | 2019-03-28 20:12:15.616 WARN 1 --- [ XNIO-2 task-4] o.s.web.servlet.PageNotFound : Request method 'POST' not supported

tverbeke commented 5 years ago

@creiche Thanks for reporting! This has been fixed with version 0.8.1 of ContainerProxy (which was shipped with ShinyProxy 2.2.1).