http-status-code-405

FastAPI GET endpoint returns "405 method not allowed" response

FastAPI GET endpoint returns "405 method not allowed" response Question: A GET endpoint in FastAPI is returning correct result, but returns 405 method not allowed when curl -I is used. This is happening with all the GET endpoints. As a result, the application is working, but health check on application from a load balancer is …

Total answers: 2