TooManyRedirects when trying to add aioauth2
See original GitHub issue- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- OS version and name: GNU/Linux 4.18.7-1-default, openSUSE Tumbleweed
- Poetry version: 0.12.10
- Link of a Gist with the contents of your pyproject.toml file: Irrelevant
Issue
I run poetry add
and get this:
$ poetry -vvv add aioauth2
[TooManyRedirects]
Exceeded 30 redirects.
Exception trace:
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/cleo/application.py in run() at line 94
status_code = self.do_run(input_, output_)
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/poetry/console/application.py in do_run() at line 88
return super(Application, self).do_run(i, o)
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/cleo/application.py in do_run() at line 197
status_code = command.run(input_, output_)
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/poetry/console/commands/command.py in run() at line 77
return super(BaseCommand, self).run(i, o)
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/cleo/commands/base_command.py in run() at line 146
status_code = self.execute(input_, output_)
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/cleo/commands/command.py in execute() at line 107
return self.handle()
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/poetry/console/commands/add.py in handle() at line 69
packages, allow_prereleases=self.option("allow-prereleases")
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/poetry/console/commands/init.py in _determine_requirements() at line 230
requirement["name"], allow_prereleases=allow_prereleases
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/poetry/console/commands/init.py in _find_best_version_for_package() at line 260
name, required_version, allow_prereleases=allow_prereleases
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/poetry/version/version_selector.py in find_best_candidate() at line 29
package_name, constraint, allow_prereleases=allow_prereleases
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/poetry/repositories/pool.py in find_packages() at line 65
name, constraint, extras=extras, allow_prereleases=allow_prereleases
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/poetry/repositories/pypi_repository.py in find_packages() at line 104
info = self.get_package_info(name)
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/poetry/repositories/pypi_repository.py in get_package_info() at line 228
name, lambda: self._get_package_info(name)
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/cachy/repository.py in remember_forever() at line 174
val = value(callback)
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/cachy/helpers.py in value() at line 6
return val()
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/poetry/repositories/pypi_repository.py in <lambda>() at line 228
name, lambda: self._get_package_info(name)
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/poetry/repositories/pypi_repository.py in _get_package_info() at line 232
data = self._get("pypi/{}/json".format(name))
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/poetry/repositories/pypi_repository.py in _get() at line 381
json_response = self._session.get(self._url + endpoint)
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/requests/sessions.py in get() at line 546
return self.request('GET', url, **kwargs)
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/requests/sessions.py in request() at line 533
resp = self.send(prep, **send_kwargs)
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/requests/sessions.py in send() at line 668
history = [resp for resp in gen] if allow_redirects else []
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/requests/sessions.py in <listcomp>() at line 668
history = [resp for resp in gen] if allow_redirects else []
/home/rominf/.pyenv/versions/3.6.7/envs/jira-oauth/lib/python3.6/site-packages/requests/sessions.py in resolve_redirects() at line 165
raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp)
add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...
Issue Analytics
- State:
- Created 5 years ago
- Reactions:15
- Comments:62 (8 by maintainers)
Top Results From Across the Web
Too many redirects when attempting authorisation ... - GitHub
I'm working on a gmail add-on with the following code: function getGoogleService() { return OAuth2.createService('google') .
Read more >Facing error too many redirects while trying to login with ...
I am new to Okta and facing the same issue. Its keeps redirecting to http://localhost:8080/oauth2/authorization/okta dev-845301.okta.com ...
Read more >Too Many Redirects? ERR_TOO_MANY_REDIRECTS and ...
The first thing you can try is clearing the cache and cookies in your browser. Sometimes a too many redirects error can occur...
Read more >OAuth2, Keycloak & Vartx integration. Too many redirects
But when I try secure /protected/page OAuth2 handler browser report too many redirects error ... SessionStore store = ClusteredSessionStore.create(vertx);
Read more >Too many redirects: SSO implementation in Spring Boot using ...
I am now thinking that I should try setting the redirect URI to localhost rather than the load balancer and to include a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sfermigier / @rominf when it asks for the name of a cache, its referring to any additional repositories that you might’ve added. One name that is reserved is
pypi
If you had added some other repository, you could clear that repository’s cache the same way.
I tried
poetry cache:clear
but it asks for the name of a cache, and I have no idea what this means.So I used
rm -rf ~/Library/Caches/pypoetry/
(specific to MacOS, caches locations vary from OS to OS).