#241·Arjun

AttributeError: 'dict' object has no attribute 'status_code' during initialization

Author: inteleon404Created Aug 22, 2026Updated Aug 22, 2026

I encountered an AttributeError while running Arjun. It seems that the request variable is being evaluated as a dictionary instead of a response object when checking the status_code during initialization.

Steps to Reproduce

Run the following command: arjun -u 'https://example.com/api/v1/endpoint' --disable-redirects --stable

Error Output

[*] Scanning 0/1: [https://example.com/api/v1/endpoint](https://example.com/api/v1/endpoint)
[*] Probing the target for stability
Traceback (most recent call last):
  File "/usr/bin/arjun", line 33, in <module>
    sys.exit(load_entry_point('arjun==2.2.7', 'console_scripts', 'arjun')())
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/arjun/__main__.py", line 204, in main
    these_params = initialize(request, wordlist, single_url=is_single)
  File "/usr/lib/python3/dist-packages/arjun/__main__.py", line 135, in initialize
    print('%s Target returned HTTP %i, this may cause problems.' % (bad, request.status_code))
                                                                         ^^^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'status_code'

Environment

  • Arjun Version: v2.2.7
  • Command run: arjun -u 'https://example.com/api/v1/endpoint' --disable-redirects --stable