Questions tagged [flask]
144 questions
0
votes
0 answers
How to make changes to Flask api without interrupting live traffic
I have a backend hosted at api.example.com using Flask. I would like to be able to make changes to this api without interrupting live traffic. I'm thinking of ways to accomplish this but without using a load balancer.
What I have done so far:
I…
0
votes
0 answers
Use Multiple Azure Application Insights in one Flask app
Hi i have a flask application that Build as a docker image to serve as an api
this image is deployed to multiple environments (DEV/QA/PROD)
i want to use an applicationInsight for each environment
using a single application Insight works fine
here…

ossama assaghir
- 31
- 7
0
votes
0 answers
Adding image to video in python with flask
I can add pictures to the video in the normal python editor. When I write the codes for flask, the video works but the pictures I added are not visible.
from flask import Flask, render_template, Response
from camera import VideoCamera
import…
0
votes
0 answers
WSGI, no module found for "aviance"
I am currently working on a backend for my website so that people don't finally see a NAME_NOT_RESOLVED error. I am using apache2 for my framework & WSGI to be able to communicate with flask, here are the files listed in my project folder located at…

Ruler
- 1
- 1
0
votes
0 answers
Apache server has randomly started returning "access denied" error
Like 7 months ago I created a flask API that was being served with Apache, everything was working fine up until last week when it started to returning the following error:…

Amon
- 101
- 4
0
votes
1 answer
I get an Error "Load cannot follow more than 20 redirects" after installing ssl certificate
this is my config file:
server {
server_name songreccs.com;
location /static {
root /home/user/sonreccs/flaskrec/;
}
location / {
proxy_pass http://localhost:8000;
…

maltek
- 3
- 2
0
votes
1 answer
Python Flask on IIS: HttpPlatform Doesn't Load When Visiting Hostname
So my web.config currently looks like the following for production and the site works when I visit it

pee2pee
- 369
- 1
- 5
- 12
0
votes
0 answers
Nginx giving "No such file or directory" error for static files
I am trying to deploy a site on to a linux server following Corey Schafer's guide for Flask.
My site is working, but nginx is unable to read/access/find the static folder and the files within.
I initially removed the default sites-enabled and…

acodeaday
- 11
- 1
- 2
- 4
0
votes
1 answer
Unable to access one server on network, while able to access others
I am not certain about the terminology; I will try to be as clear as possible but note I might use a word wrong.
I have a number of Ubuntu servers, all connected to the same network. I can access each of these servers over SSH, but only if I am…

Mitchell van Zuylen
- 163
- 1
- 2
- 8
0
votes
1 answer
Hosting Google VM on web
sorry for the rookie question, I'm just starting with Google Cloud and web developement. I have a Flask application, works perfectly locally, and also when deployed to a VM in GC. However I can only trigger the API now by using the external IP…

Jázon Pánczél
- 1
- 1
0
votes
0 answers
How to add multiple ip and add sub-domain in nginx?
I was following the nginx,uwsgi with flask & docker tutorial. My nginx config file contains:
server {
listen 5000;
server_name 19X.X.X.X;
client_header_buffer_size 5M;
large_client_header_buffers 4 5M;
client_max_body_size 75M;
location / {
…

siam
- 1
- 1
0
votes
0 answers
Server CPU Usage Above 100% for the Past Week
My server running ubuntu and flask for a webapp as well as scrapy, selenium, and postfix has been experiencing very abnormal cpu usage. This server has not used as much cpu load in the past, but has recently increased by a very large amount. Any…

Python 123
- 13
- 1
- 5
0
votes
0 answers
Gateway Timeout Error AWS Lightsail
I have a flask API container deployed on Lightsail. When I make a request to one of the API endpoints, I get a 504 gateway error as the status on the client-side. However, when I check the server logs on Lightsail, I see that the server returned…

Mosky1970
- 11
- 1
0
votes
1 answer
Unix socket communication with Apache 2.4.51 and Flask App using Uwsgi returning "404 Not Found"
I'm using Apache in the front as web server and running python flask application at
the back end and they communicate using Unix socket as mentioned in the link below for mod_proxy_uwsgi module and i have loaded both mod_proxy and mod_proxy_uwsgi as…

Jai
- 1
- 2
0
votes
1 answer
Redirect URI mismatch error from Google OAuth for flask app
I have a Flask web application which is hosting in Google Cloud Run which is hosted with https://mydomain.run.app.
Now I am trying to add google authentication to it. I have created the API under credentials in GCP. I have given…