uwsgi invalid request block size

后端 未结 7 1297
陌清茗
陌清茗 2020-12-12 11:09

I\'m running uwsgi in emperor mode

uwsgi --emperor /path/to/vassals/ --buffer-size=32768

and getting this error

invalid re         


        
相关标签:
7条回答
  • 2020-12-12 11:56

    This error is shown when uWSGI server is using uwsgi protocol and one tries to access it via http protocol by curl or web browser directly. If you can, try configuring your uWSGI server to use http protocol, so you can access it via web browser or curl.

    In case you cannot (or do not want to) change it, you can use a reverse proxy (e.g. nginx) in front of local or remote uWSGI server, see https://uwsgi-docs.readthedocs.org/en/latest/Nginx.html

    If it feels like too much work, give a try to uwsgi-tools python package:

    $ pip install uwsgi-tools
    
    $ uwsgi_curl 10.0.0.1:3030
    

    There is also a simple reverse proxy server uwsgi_proxy if you need to access your application(s) via web browser etc. See more expanded answer https://stackoverflow.com/a/32893520/179581

    0 讨论(0)
提交回复
热议问题