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

net::ERR_INCOMPLETE_CHUNKED_ENCODING #55

Open
bigfoote opened this issue Apr 19, 2021 · 0 comments
Open

net::ERR_INCOMPLETE_CHUNKED_ENCODING #55

bigfoote opened this issue Apr 19, 2021 · 0 comments
Labels

Comments

@bigfoote
Copy link

Describe the Bug

I have a Luminus app using static ring-proxy to mediate between the browser and a back-end server, which works fine when running on its own, but I have used lein-uberwar to package it up and deploy it onto Tomcat, and there I see this error that a Content-Length header is set even though the response says it is chunked encoding, which the browser says contradicts itself and can't be processed. I looked though the http-opts, and nothing jumps out at me as a setting to change to avoid this. Any ideas?

Expected Behavior

The response from the servlet running in Tomcat has the chunked_encoding header, but not Content-Length

Steps to Reproduce

Steps to reproduce the behavior:

  1. lein new luminus app +war
  2. use (wrap-proxy ...) around the app-routes to forward anything matching "/api" to a server that returns chunked-encoding responses
  3. lein uberwar to compile to a .war
  4. deploy to Tomcat
  5. trigger AJAX calls from the browser to the URLs that are being proxied

Environment

  • I'm actually using this through [derekchiang/ring-proxy "1.0.1"]
  • Compiled on Ubuntu 20.10, run on Tomcat 9.0.44 on Windows 10

Additional Context

I hit the server from PostMan just to make sure it wasn't a problem with the browser or the ClojureScript app, but it also throws a parsing error.

@bigfoote bigfoote added the bug label Apr 19, 2021
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