Questions tagged [flask]
144 questions
0
votes
1 answer
VueJS sending POST to Flask fails (CORS Request blocked)
I've been following this vuejs guide and this flask guide to host my frontend and backend on a raspberry pi.
On my frontend I have this method, which sends an axios POST to the backend.
// path = http://127.0.0.1:5000/shift
// pin, port = 1-8 /…

HackXIt
- 21
- 1
- 8
0
votes
0 answers
mod_wsgi LoadModule for Python3 is ignored
Trying to configure apache with mod_wsgi and Python3
mod_wsgi config
LoadModule wsgi_module /etc/httpd/mod_wsgi/mod_wsgi-py36.cpython-36m-x86_64-linux-gnu.so
Flask App config
WSGIScriptAlias /test /var/www/FlaskApp/FlaskApp/flask_app.wsgi
…

Karthi
- 1
- 1
0
votes
1 answer
Localhost reverse proxy fails nginx AWS Ubuntu
I am attempting to to host a Flask app with Gunicoron on a server that hosts multiple web services on Nginx. I am using AWS ubuntu as a test bed for evetually hosting it on said Nginx mutilple web service (that's not AWS). I've been trying to make…

user1449249
- 1
- 4
0
votes
0 answers
Uploading a Python Flask App to an existing Apache2 Server and making it listen on a different port
Quick context:
I have a Ubuntu 14.04 LAMP Server that's been hosting my ExtJS Website for a pretty long time.
Recently, I've had the opportunity of tinkering with DialogFlow, and I've also made a Python Flask app to serve as the Webhook for when…

Razgriz
- 113
- 1
- 6
0
votes
0 answers
Why do I get a 110: Connection timed out error, white serving a flask app through nginx and uwsgi?
I am trying to serve a flask application using nginx and uwsgi, through an ubuntu docker container, while the host is also an ubuntu 18.04 OS.
This is the conf file for the nginx server, for which I have created a symbolic link in…
0
votes
1 answer
How can I solve 0x80070585 Error code on my Python Flask wfastcgi app?
I'm trying to deploy a Flask app on IIS (usually doing it on an Nginx/Gunicorn stack).
My stack
I'm working with Python 3.7 installed globaly, IIS 10 on Windows 10 pro.
What I tried
Activating CGI service on IIS
Installing wfastcgi from…

Glandalf313
- 13
- 1
- 2
- 8
0
votes
0 answers
Supervisor requires reload for flask application to work properly
When my server (centOS 7 hosted on a vagrant VM) reboots, my Python Flask application (served up by Gunicorn using nginx as a reverse proxy) throws internal server errors (according to the stack traces I'm getting, it can't find templated html files…

codeAndStuff
- 101
- 1
0
votes
0 answers
Gunicorn with flask app returning 502 error
I've got an odd issue with a gunicorn server(serving a flask app) we run behind an amazon ELB. The amazon ELB was throwing 502's intermittently when accessing different URLs on the gunicorn server. There doesn't seem to be any one URL in…

VaultNerd
- 1
- 1
0
votes
1 answer
Flask WSGI vs Nginx/Gunicorn: mailing list works in dev but not production
I have deployed a Flask web app to a Digital Ocean droplet running Ubuntu 18.04. The web app is simply a landing page that has a single form that adds a visitor's email address to a Mailchimp mailing list.
The web app works perfectly in development,…

Josh
- 111
- 1
0
votes
0 answers
Back-end request to Gunicorn/Flask in Docker network: Should I use Nginx?
There are a lot of clear answers to the question on why one should use Nginx in a classic 3-tier architecture with a Gunicorn/Flask app where you also serve static content.
The architecture I want to deploy is different and I can't find an answer to…

Bastian
- 1
- 1
0
votes
1 answer
Problems installing flask on Debian server
I am having problems installing flask on my server.
$ sudo pip3 install flask
Collecting flask
From cffi callback :
Traceback (most recent call last):
File…

Fabián Montero
- 113
- 4
0
votes
0 answers
Gunicorn and Nginx Configuration Settings
I am doing some X-Ray image classification task. However, I am having trouble setting up the nginx and gunicorn configuration. I have a paperspace P4000 machine where I would like to have the webapp live.
I have to admit I am pretty much new to…

S Chakraborty
- 1
- 2
0
votes
0 answers
How to configure for many stateless requests?
I am a data scientist / machine learning developer. Sometimes, I have to expose my models by providing an endpoint. I usually do this via Flask and gunicorn:
exampleproject.py:
import random
from flask import Flask
app =…

Martin Thoma
- 277
- 4
- 13
0
votes
1 answer
Accessing device via global IP instead of port forwarding on router
I have a python script hosted on a remote server. Lets say the URL given by the hosting site is "myproject.host.com". The following is a part of the script:
import json
import socket
from flask import Flask
from flask import request
from flask…

Susmit Agrawal
- 113
- 3
0
votes
0 answers
Lighttpd running FastCGI script hangs and give 500 internal error
I'm attempting to use lighttpd and fastcgi to run a small flask application. When I try to start lighttpd, it starts the server just fine, but when I try to connect in the browser, it hangs without giving any meaningful error messages.
I'm running…

Michael
- 153
- 1
- 7