Skip to content

[FAQ] Max retries exceeded when test model to FastAPI #33

@alfanugraha

Description

@alfanugraha

Course

machine-learning-zoomcamp

Question

This question related to the chapter 05-development, so I've done on creating the python script to read pickle and submit them to FastAPI as an app. Then when I tested with data testing an error showed below:

Image

How should I handle it?

Answer

Make sure you run the uv command with fastapi with port, for example:

uv run fastapi run .\your-script-fastapi-app.py --port 9696

Checklist

  • I have searched existing FAQs and this question is not already answered
  • The answer provides accurate, helpful information
  • I have included any relevant code examples or links

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions