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

bug: Error during whois lookup #1364

Closed
1 task done
yogeshojha opened this issue Aug 9, 2024 · 1 comment · Fixed by #1368
Closed
1 task done

bug: Error during whois lookup #1364

yogeshojha opened this issue Aug 9, 2024 · 1 comment · Fixed by #1368
Labels
bug Something isn't working release/2.1.3

Comments

@yogeshojha
Copy link
Owner

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Error during whois lookup due to Nonetype value

AttributeError: 'NoneType' object has no attribute 'name'

Log

web-1          | django.request | Internal Server Error: /api/tools/whois/
web-1          | Traceback (most recent call last):
web-1          |   File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 47, in inner
web-1          |     response = get_response(request)
web-1          |   File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 181, in _get_response
web-1          |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
web-1          |   File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
web-1          |     return view_func(*args, **kwargs)
web-1          |   File "/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py", line 70, in view
web-1          |     return self.dispatch(request, *args, **kwargs)
web-1          |   File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
web-1          |     response = self.handle_exception(exc)
web-1          |   File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
web-1          |     self.raise_uncaught_exception(exc)
web-1          |   File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
web-1          |     raise exc
web-1          |   File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
web-1          |     response = handler(request, *args, **kwargs)
web-1          |   File "/usr/src/app/api/views.py", line 1136, in get
web-1          |     response = task.wait()
web-1          |   File "/usr/local/lib/python3.10/dist-packages/celery/result.py", line 251, in get
web-1          |     return self.backend.wait_for_pending(
web-1          |   File "/usr/local/lib/python3.10/dist-packages/celery/backends/asynchronous.py", line 223, in wait_for_pending
web-1          |     return result.maybe_throw(callback=callback, propagate=propagate)
web-1          |   File "/usr/local/lib/python3.10/dist-packages/celery/result.py", line 365, in maybe_throw
web-1          |     self.throw(value, self._to_remote_traceback(tb))
web-1          |   File "/usr/local/lib/python3.10/dist-packages/celery/result.py", line 358, in throw
web-1          |     self.on_ready.throw(*args, **kwargs)
web-1          |   File "/usr/local/lib/python3.10/dist-packages/vine/promises.py", line 235, in throw
web-1          |     reraise(type(exc), exc, tb)
web-1          |   File "/usr/local/lib/python3.10/dist-packages/vine/utils.py", line 27, in reraise
web-1          |     raise value
web-1          | AttributeError: 'NoneType' object has no attribute 'name'
web-1          | django.server | "GET /api/tools/whois/?format=json&ip_domain=strava.com HTTP/1.1" 500 125733

Expected Behavior

Whois lookup should be successful

Steps To Reproduce

  1. Add the target
  2. Click on whois button

Environment

- reNgine: latest
- OS: 
- Python: 
- Docker Engine: 
- Docker Compose: 
- Browser:

Anything else?

No response

@yogeshojha yogeshojha added the bug Something isn't working label Aug 9, 2024
Copy link
Contributor

github-actions bot commented Aug 9, 2024

👋 Hi @yogeshojha,
Issues is only for reporting a bug/feature request. Please read documentation before raising an issue https://rengine.wiki
For very limited support, questions, and discussions, please join reNgine Discord channel: https://discord.gg/azv6fzhNCE
Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.

yogeshojha added a commit that referenced this issue Aug 13, 2024
…lookup

#1364 FIx whois lookup and improve performance by executing various modules of whois lookup to run concurrently
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working release/2.1.3
Projects
None yet
1 participant