python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Curl localhost connection refused
I am trying to run this command in git bash:
curl http://127.0.0.1:8000/
or
curl localhost:8000/
but I receive this error:
curl: (7) Failed to connect to 127.0.0.1 port 8000 after 2043 ms: Connectio...
CFD
Votes: 0
Answers: 1
Keycloak API does not contain "resource_access"
I try to use a new package in Python called fastapi_keycloak which uses the following code:
if not decoded_token.get('resource_access').get('realm-management') or not decoded_token.get('resource_acces...
Data Mastery
Votes: 0
Answers: 1
fastAPI some tests return 404 | pytest
I'm currently trying to write some unit-tests for my fastAPI program.
The issue though is that some of the tests return a {"detail": "Not found"} error while others work. I'm calli...
Maximilian Sören Pollak
Votes: 0
Answers: 1
How can I return a NumPy array in FastAPI?
@app.post("/predict/")
async def predict(file:UploadFile = File(...)):
bytes_str = io.BytesIO(await file.read())
img = Image.open(bytes_str)
img_array = np.array(img.convert('RGB...
Luis Gerardo Mendoza
Votes: 0
Answers: 1