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

yolk -U raises HTTPTooManyRequests error #41

Open
tanducmai opened this issue May 15, 2022 · 0 comments
Open

yolk -U raises HTTPTooManyRequests error #41

tanducmai opened this issue May 15, 2022 · 0 comments

Comments

@tanducmai
Copy link

Simply after I enter yolk -U into the command line, it stay quite for a while and then an error is raised, showing:

$ yolk -U
Checking you-get
Traceback (most recent call last):
  File "~/.local/bin/yolk", line 8, in <module>
    sys.exit(main())
  File "~/.local/lib/python3.8/site-packages/yolk/cli.py", line 1171, in main
    my_yolk.run()
  File "~/.local/lib/python3.8/site-packages/yolk/cli.py", line 224, in run
    return getattr(self, action)()
  File "~/.local/lib/python3.8/site-packages/yolk/cli.py", line 254, in show_updates
    for (project_name, version, newest) in _updates(
  File "~/.local/lib/python3.8/site-packages/yolk/cli.py", line 1117, in _updates
    results = pool.map(worker_function, names)
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 364, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 771, in get
    raise self._value
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar
    return list(map(*args))
  File "~/.local/lib/python3.8/site-packages/yolk/cli.py", line 1109, in worker_function
    (project_name, versions) = pypi.query_versions_pypi(
  File "~/.local/lib/python3.8/site-packages/yolk/pypi.py", line 147, in query_versions_pypi
    versions = self.package_releases(pypi_pkg)
  File "~/.local/lib/python3.8/site-packages/yolk/pypi.py", line 197, in package_releases
    return self.xmlrpc.package_releases(package_name)
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1109, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1450, in __request
    response = self.__transport.request(
  File "~/.local/lib/python3.8/site-packages/yolk/pypi.py", line 67, in request
    return self.parse_response(fhandle)
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1341, in parse_response
    return u.close()
  File "/usr/lib/python3.8/xmlrpc/client.py", line 655, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault -32500: 'HTTPTooManyRequests: The action could not be performed because there were too many requests by the client. Limit may reset in 1 seconds.'>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant