Error sending POST request to /upload_df: Expecting value: line 1 column 1 (char 0) Error
Using FastAPI framework, I wrote a program that takes live video feed from webcam and shows it in the front end using image_feed
function. Each frame is processed with a function namely process_image(img, scale=0.35)
. From that function, it updates a global dataframe df
.
When this process is complete, the live feed is stopped by making state.live = False
. The function then calls /upload_df
, that should convert the df
into a HTML table and show it in the HTML front end. (With a print command, I checked the html table conversion is successful).
Error sending POST request to /upload_df: Expecting value: line 1 column 1 (char 0) Error
Using FastAPI framework, I wrote a program that takes live video feed from webcam and shows it in the front end using image_feed
function. Each frame is processed with a function namely process_image(img, scale=0.35)
. From that function, it updates a global dataframe df
.
When this process is complete, the live feed is stopped by making state.live = False
. The function then calls /upload_df
, that should convert the df
into a HTML table and show it in the HTML front end. (With a print command, I checked the html table conversion is successful).
Error sending POST request to /upload_df: Expecting value: line 1 column 1 (char 0) Error
Using FastAPI framework, I wrote a program that takes live video feed from webcam and shows it in the front end using image_feed
function. Each frame is processed with a function namely process_image(img, scale=0.35)
. From that function, it updates a global dataframe df
.
When this process is complete, the live feed is stopped by making state.live = False
. The function then calls /upload_df
, that should convert the df
into a HTML table and show it in the HTML front end. (With a print command, I checked the html table conversion is successful).
Error sending POST request to /upload_df: Expecting value: line 1 column 1 (char 0) Error
Using FastAPI framework, I wrote a program that takes live video feed from webcam and shows it in the front end using image_feed
function. Each frame is processed with a function namely process_image(img, scale=0.35)
. From that function, it updates a global dataframe df
.
When this process is complete, the live feed is stopped by making state.live = False
. The function then calls /upload_df
, that should convert the df
into a HTML table and show it in the HTML front end. (With a print command, I checked the html table conversion is successful).
I/O operation on closed file while streaming a response from Fastapi
I’m trying to stream a response to the client with the progress percentage after processing each file in the below code, however I see the error I/O operation on closed file
for each of the files.
I/O operation on closed file while streaming a response from Fastapi
I’m trying to stream a response to the client with the progress percentage after processing each file in the below code, however I see the error I/O operation on closed file
for each of the files.
I/O operation on closed file while streaming a response from Fastapi
I’m trying to stream a response to the client with the progress percentage after processing each file in the below code, however I see the error I/O operation on closed file
for each of the files.
Picking up the body post request from fastAPI server
I wonder how to pick up the body post request from a fast api server in order to transform this body to making a new body to post another server.
raise ConnectionErrors( fastapi_mail.errors.ConnectionErrors: Exception raised Timed out connecting to smtp.gmail.com on port 587
I am using fastapi-mail to send a simple email from backend for one of the routes. This is the code that I have running:
How to return a result from a fastapi endpoint processing an array of int32 numbers? [closed]
Closed 3 months ago.