You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Might not be the best issue title, I'm not quite sure what is happening myself. When I "push" a file that is too large as an input, the "File size for input exceeded" message is readable when I am using the basic server (a pywps Service through werkzeug.serving.run_simple). However, when using gunicorn, the connexion is reset and the client fails with ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')), coming from the request package.
I have another setup, where the pywps service is launched the same way (with gunicorn), but is also behind nginx and twitcher (see comment below). In that case, I did receive a proper Exception xml, but not the good one:
Note that this other server is on another machine, while my first simple setup has the client and server on the same machine. Also, I am able to bypass nginx and twitcher on the second setup, which gave me the exact same error as my simple local setup : ConnectionResetError.
(*) @tlvu Can you give basic details on how your dev server is different from me calling gunicorn --bind=0.0.0.0:5000 finch.wsgi:application in a terminal? EDIT: Added some info relating to that different setup.
The text was updated successfully, but these errors were encountered:
(*) @tlvu Can you give basic details on how your dev server is different from me calling gunicorn --bind=0.0.0.0:5000 finch.wsgi:application in a terminal?
Let me know if you still have gunicorn behavior difference between my dev server and the one you launch locally on your machine.
Otherwise, it might comes down to version difference (version of gunicorn, version of the various libraries installed) or configuration difference (pywps config, wsgi config, gunicorn config).
Thanks @tlvu. I edited the top comment with the new information. Summary: bypassing nginx and twitcher gives the same "ConnectionResetError" on the client side. So with nginx+twitcher it seems like the broken connection results in a nicer "BrokenPipeError" on the server side.
Description
Might not be the best issue title, I'm not quite sure what is happening myself. When I "push" a file that is too large as an input, the "File size for input exceeded" message is readable when I am using the basic server (a pywps Service through
werkzeug.serving.run_simple
). However, when usinggunicorn
, the connexion is reset and the client fails with('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
, coming from therequest
package.I have another setup, where the pywps service is launched the same way (with
gunicorn
), but is also behind nginx and twitcher (see comment below). In that case, I did receive a proper Exception xml, but not the good one:Note that this other server is on another machine, while my first simple setup has the client and server on the same machine. Also, I am able to bypass
nginx
andtwitcher
on the second setup, which gave me the exact same error as my simple local setup :ConnectionResetError
.I am in fact using
finch
(https://github.com/bird-house/finch) as the pyWPS Service. The simplerun_simple
server is actually taken fromemu
(https://github.com/bird-house/emu/).I am using
birdy
andowslib
for the client side.Environment
werkzeug.serving.run_simple
when it works,gunicorn
when it doesn't.Steps to Reproduce
This is the simplest way I can think of to reproduce the bug, but it involves
emu
andbirdy
. Sorry I am still a noob in this wps thing.Server. With
emu
installed, in a terminal:Client. With
birdy
installed, in a python session:Additional Information
(*) @tlvu Can you give basic details on how your dev server is different from me calling
gunicorn --bind=0.0.0.0:5000 finch.wsgi:application
in a terminal? EDIT: Added some info relating to that different setup.The text was updated successfully, but these errors were encountered: