question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

censys.common.exceptions.CensysRateLimitExceededException: 429 (Too Many Requests): You have used your full quota for this billing period.

See original GitHub issue

Describe the bug I’m assuming the free account can perform “Limited queries* per month” and “Up to 1,000 results* per query” but for new fresh free account and censys CLI installation I’m getting the error below.

ricardo@zion:~$ censys view 8.8.8.8
Traceback (most recent call last):
  File "/home/ricardo/.local/bin/censys", line 8, in <module>
    sys.exit(main())
  File "/home/ricardo/.local/lib/python3.9/site-packages/censys/cli/__init__.py", line 21, in main
    args.func(args)
  File "/home/ricardo/.local/lib/python3.9/site-packages/censys/cli/commands/view.py", line 44, in cli_view
    document = index.view(args.document_id, **view_args)
  File "/home/ricardo/.local/lib/python3.9/site-packages/censys/search/v2/api.py", line 262, in view
    return self._get(self.view_path + document_id, args)["result"]
  File "/home/ricardo/.local/lib/python3.9/site-packages/censys/common/base.py", line 213, in _get
    return self._make_call(self._session.get, endpoint, args)
  File "/home/ricardo/.local/lib/python3.9/site-packages/censys/common/base.py", line 41, in _wrapper
    return _impl()
  File "/home/ricardo/.local/lib/python3.9/site-packages/backoff/_sync.py", line 94, in retry
    ret = target(*args, **kwargs)
  File "/home/ricardo/.local/lib/python3.9/site-packages/censys/common/base.py", line 39, in _impl
    return method(self, *args, *kwargs)
  File "/home/ricardo/.local/lib/python3.9/site-packages/censys/common/base.py", line 203, in _make_call
    raise censys_exception(
censys.common.exceptions.CensysRateLimitExceededException: 429 (Too Many Requests): You have used your full quota for this billing period. Please see https://censys.io/account/billing or contact support@censys.io.
ricardo@zion:~$ censys --version
Censys Python Version: 2.0.7
ricardo@zion:~$ 

To Reproduce Steps to reproduce the behavior:

  1. Create a new free account
  2. Install censys CLI
  3. Run “censys view 8.8.8.8”

Expected behavior Get the results.

Device (please complete the following information):

  • OS [e.g. macOS]: Kali
  • Censys Python Version [e.g. 1.1.0]: 2.0.7
  • Shell [e.g. bash, zsh]: Bash

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
riramarcommented, Sep 17, 2021

I believe warning check should start here https://github.com/censys/censys-python/blob/main/censys/cli/commands/config.py#L52. Please let me know if you’ll do that otherwise I can send a PR.

1reaction
thehappydinoacommented, Sep 17, 2021

That would be a really good idea, I may be able to include it in my PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source code for censys.common.exceptions
[docs]class CensysRateLimitExceededException(CensysSearchException): """Exception raised when your Censys rate limit has been exceeded.""".
Read more >
Resolve the "Getting error Too Many Requests" error in AWS ...
"Getting error Too Many Requests (Service: AWSBatch; Status Code: 429; Error Code: TooManyRequestsException)." There are two common reasons ...
Read more >
HTTP Error 429 Too Many Requests - delete cookies
The HTTP 429 Too Many Requests response status code indicates that the user ... You're sending too many requests in a short period...
Read more >
Search 2.0 Python Library - Censys
Every Search API endpoint is supported by the Python library. This guide will show you how to use the library to interact with...
Read more >
Handling the “HTTP 429 – Too Many Requests” error when ...
I think that many of you that creates integrations with external services could have the pleasure to know the HTTP 429 error: too...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found