[Solved] Poetry gives: `TooManyIndirects` error suddenly

Github Mohit Mozumder

Problem:

When trying to install the project using poetry (poetry install/poetry update) i get:

Updating dependencies Resolving dependencies... (14.3s)

TooManyRedirects

Exceeded 30 redirects.


Solution:

Clear the cache :

poetry cache clear --all REPO_NAME

Also, it could happen on global PYPI, in that case run:

poetry cache clear --all pypi

To list all poetry's repos:

poetry cache list

Thank you for reading the article. Feel free to contact with us for any queries.