-
Notifications
You must be signed in to change notification settings - Fork 178
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
Nested Bottle app with Waitress #76
Comments
I have the same issue,
Seems to be to do with how waitress implements 'wsgi.file_wrapper' In the bottle app, if I remove 'wsgi.file_wrapper' from request.environ then it all works fine.
This causes an iterable file wrapper to be created, which avoids the problem, |
Have looked into this a little deeper and I'm not convinced this is a waitress bug, waitress implements
So this means that until This becomes a problem if used in a nested bottle app
In our case, the above wrapper is called before I have found that adding Why should bottle check whether or not |
From defnull in Bottle Issue 678
If waitress' maintainers agree then can we fix this? |
I have got the same issue when I try to mount a plugin on my web application: Do you know how I can work around this issue until this is fixed upstream? |
Workaround ...
|
I am building a web application using nested Bottle apps and I'm having problems returning a static file from the nested app when running the site through the Waitress web server. It works fine when run with WSGIRefServer, which suggests a problem with Waitress.
Sample app that replicates the issue below (browse to
/test/
). If I run the app using WSGIRefServer (commented run command) then the javascript file downloads fine. If i useserver="waitress"
then /test/js returns a blank response (no errors).Contents of test.js:
I'm running Python 3.4.2 with Bottle 0.12.7 and Waitress 0.8.9. (downloaded via pip).
The text was updated successfully, but these errors were encountered: