Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TooManyRedirects] Exceeded 30 redirects. #1033

Closed
2 tasks done
kakulukia opened this issue Apr 12, 2019 · 15 comments
Closed
2 tasks done

[TooManyRedirects] Exceeded 30 redirects. #1033

kakulukia opened this issue Apr 12, 2019 · 15 comments
Labels
kind/bug Something isn't working as expected

Comments

@kakulukia
Copy link

kakulukia commented Apr 12, 2019

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Question

n poetry update in my project i get

[TooManyRedirects]
Exceeded 30 redirects.

I have attached the log for poetry update -vvv and hope that somebody can help me figure out the root of this problem.

poetry log.txt

@le717
Copy link

le717 commented Apr 13, 2019

I am also getting this error when trying to run poetry add mailjet_rest. I was trying to start a new install of my project and this is the only library I cannot install, which means I can't fully install my project because of this error. poetry update also fails in my existing project with this error. I've attached the output of poetry add mailjet_rest -vvv, in case it helps any.

poetry-log.txt

@drunkwcodes
Copy link

@le717 May you retry? I ran it with the same command and it's fine.

@le717
Copy link

le717 commented Apr 13, 2019

@drunkwcodes I just tried it again with a clean venv, created by poetry, and got the same error and debug output. I'm using Win 10 x64 and Py 3.6/3.7 x86. The weird thing is this used to work, as my original venv successfully added it.

@josh-stableprice
Copy link

Have you tried the "fix" from #728 of clearing the cache. Just worked for me, and is something that needs to be fixed.

@kakulukia
Copy link
Author

Awesome, that fixed my problem!
That hint might be displayed along with the too many redirects error?

@kakulukia
Copy link
Author

thx @josh-stableprice !

@le717
Copy link

le717 commented Apr 27, 2019

@josh-stableprice I just got a chance to try that and it seems to have fixed the issue. Thank you! Although hopefully the root issue can be found and fixed, it's good to know there is a (strange but working) workaround.

@kasteph
Copy link
Member

kasteph commented Jun 26, 2019

Thanks for submitting this issue! Since this is a duplicate of the open issue #728, I will close this for now in order to keep the discussions regarding [TooManyRedirects] in one place.

@kasteph kasteph closed this as completed Jun 26, 2019
@kasteph kasteph added the kind/bug Something isn't working as expected label Jun 26, 2019
@Vvaradinov
Copy link

Seems there is an outage in PyPi judging from their status page. Probably not related to poetry.

https://status.python.org/

@dsaub
Copy link

dsaub commented Jun 10, 2022

thanks for the information

@bohblue2
Copy link

Thanks, Pypi is not working until now.

@ahmadhori
Copy link

luckily I could borrow the virtual environment of my team mate so I don't need to wait for this issue to get fixed :D

@andrea-mucci
Copy link

andrea-mucci commented Jun 10, 2022

the Pypi seems recovered by still have the same problem

`
TooManyRedirects

Exceeded 30 redirects.

at ~/.poetry/lib/poetry/_vendor/py3.9/requests/sessions.py:166 in resolve_redirects
162│ except (ChunkedEncodingError, ContentDecodingError, RuntimeError):
163│ resp.raw.read(decode_content=False)
164│
165│ if len(resp.history) >= self.max_redirects:
→ 166│ raise TooManyRedirects('Exceeded {} redirects.'.format(self.max_redirects), response=resp)
167│
168│ # Release the connection back into the pool.
169│ resp.close()
170│

`

i have cleared the cache but nothing changed

I have exported a requirements file and installed with pip and everything work well
so in that case i suppose is a poetry problem and not a pip problem

Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests