187 questions
1
vote
1
answer
133
views
Telegram bot webhook works locally but not on Proxmox with NAT / MikroTik: connection timed out
Body
I'm trying to deploy my Telegram bot from my local machine (where it works via localtunnel) to a VM on Proxmox behind MikroTik with NAT and nginx.
On the VM, nginx terminates HTTPS and proxies /...
0
votes
1
answer
38
views
Quart (Flask) file uploaded removed right after request completed
I'm using Quart (Flask fork) and I have a view which handles ".bin" file upload (100MB).
But on file.save(path) call I can see the file appears in destination folder for moment and ...
-1
votes
1
answer
107
views
Bootstrap 5.3.5 center <h1> text vertically [closed]
I have the following base.html in my Quart template with bootstrap 5.3.5:
.header {
height: 100px;
vertical-align: middle;
}
.header-title {
position: relative;
text-align: center;
display: ...
-1
votes
1
answer
115
views
Bootstrap 5.3.5 anchor tag with an image not clickable
I have the following base.html in my Quart template with bootstrap 3.5.3:
<div class="header">
<a href="{{url_for('home.index')}}"><img src= "{{ url_for('...
0
votes
1
answer
101
views
Facing issue in deploying a Quart application in Azure Durable Funtions with Docker
I am trying to deploy a python Quart application to Azure function with Docker. Below is my Docker file. My Azure function is failing to start. I get "Application error" when accessing the ...
1
vote
0
answers
102
views
Quart @stream_with_context decorator not persisting g global object
I presume that the quart @stream_with_context decorator would allow the g object to be make availble to the async generator. However it does not seem to be working.
Here is the simple quart app that I ...
-1
votes
1
answer
143
views
Which version of Quart to use?
I have a very simple Flask website running on my Synology NAS. I discovered that I probably need asyncio capabilities.
I found out that these do not work with Flask. Via Google I learned that Quart is ...
0
votes
1
answer
642
views
Trying to build a python API, but getting this error for Quart library as not found
Exception has occurred: ModuleNotFoundError
No module named 'quart'> File Path "C:\xxxxxS\xx\xxxl\NewProjects\xxxx\my_api_env\app.py", line 3, in
from quart import Quart, request, ...
1
vote
0
answers
24
views
WebSocket connection closing unexpectedly [duplicate]
To get around the POST request timeout errors, I've implemented a websocket variant of my code (below) that would send a task client side and awaits a response from my server side (whether the task ...
0
votes
1
answer
658
views
Python 3.12.3 Quart Hypercorn Error in ASGI Framework RuntimeError: no running event loop
I run a quart hypercorn server with the following command:
pipenv run hypercorn --config=hypercorn.toml --reload src.main:app
and the following configuration:
accesslog = "/var/log/pythonrestapi&...
0
votes
1
answer
253
views
Application Insights telemetry returning CORS error in Quart
I have a backend developed using Quart that uses the quart_cors lib to avoid CORS problems. Everything was working fine, but when I try to add Application Insights from Microsoft Azure solutions the ...
0
votes
1
answer
529
views
Facing Container startup issue, when deploying Quart App in Azure APP service
I'm trying to deploy a Quart application to Azure App Service using a Docker container, but I'm running into an issue where the Docker container fails to start on port 8000 and disconnects.
from quart ...
1
vote
1
answer
165
views
Websockets not working in Quart using Blueprints
`i'm trying to initialize a websocket connection with the Broker class using Blueprints but it seems that it's not getting any response back only 400 error and this :
WebSocket error:
error { target: ...
2
votes
0
answers
123
views
How to make multiple simultaneous request to python quart, and process request simultaneously
I want to create api in python, so I choose quart framework, and I manager to create api, but I want to process multiple request at same time, currently when I make 2 simultaneous request they ...
1
vote
1
answer
535
views
Opening a New order in IBKR(Interactive Brokers) API Using POST Request
When I try using Flask / Quart, I keep getting the error, 'This event loop is already running', and I can't seem to find a workaround for this issue.
I have successfully opened a new order in IBKR ...