Skip to content

Tag: flask

flask web socket not connecting

i am trying to connect websocket in flask(1.1.2) with Flask-SocketIO(5.0.1) but it give 400 error to websocket url. i`m using anaconda virtual environment. my requirements.txt is – amqp==5.0.3, bidict==0.21.2, certifi==2020.12.5,click==7.1.2, dnspython==1.16.0, eventlet==0.30.0, Flask==1.1.2, Flask-Sock…

RQ task from Flask keeps adding to queue

My setup is: Running Redis on docker locally running RQ in virtualenv(rq) running Flask in virtualenv(rq) Goal is to launch RQ tasks by hitting the Flask app. Redis seems to running fine, as does the rq worker (launched by “rq worker”) Simple tasks get queued and done. The simple subprocessed &#82…

How do i embed nnv diagram in flask?

I want to embed a nnv render in flask but my code semms to not be rendering the neural-network diagram. My code: Answer The problem is that matplotlib is used to plot the neural network graph; in order to return an image as an HTTP response, you need to convert the plot to bytes.

Error when trying to connect to flask via localhost

I can across a script on github that send a Post request using flask. I am trying run the script to establish a connection on my local host. But I get the below response The method is not allowed for the requested URL. Answer you are trying to have only a root i.e “/” in your route. Can you try

Python-Flask No response: After stayed active for one day

App description: I am using Python-Flask module with PostgreSql 12 as a REST API on a Web based application. There is a lot of request based heartbeat (JavaScript SetIntervals to send heartbeat almost for a every second and the CRUD operations for every user request on a small scale) and REST data (json data …