-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
I try import a nucley scann to the api but says:
[12/Jan/2026 13:59:37] ERROR [dojo.api_v2.exception_handler:49] can only concatenate str (not "NoneType") to str
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/rest_framework/views.py", line 512, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/local/lib/python3.13/site-packages/rest_framework/mixins.py", line 19, in create
self.perform_create(serializer)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/app/dojo/api_v2/views.py", line 2541, in perform_create
serializer.save(push_to_jira=push_to_jira)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/dojo/api_v2/serializers.py", line 2505, in save
self.process_scan(data, context)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/app/dojo/api_v2/serializers.py", line 2324, in process_scan
context["test"], _, _, _, _, _, _ = importer.process_scan(
~~~~~~~~~~~~~~~~~~~~~^
context.pop("scan", None),
^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/app/dojo/importers/default_importer.py", line 112, in process_scan
parsed_findings = self.parse_findings(scan, parser) or []
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/app/dojo/importers/base_importer.py", line 276, in parse_findings
parsed_findings = self.parse_findings_static_test_type(scan, parser)
File "/app/dojo/importers/default_importer.py", line 411, in parse_findings_static_test_type
return super().parse_findings_static_test_type(scan, parser)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/app/dojo/importers/base_importer.py", line 171, in parse_findings_static_test_type
return parser.get_findings(scan, self.test)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/app/dojo/tools/nuclei/parser.py", line 145, in get_findings
(template_id + item_type + matcher + endpoint.host).encode(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
TypeError: can only concatenate str (not "NoneType") to str
[12/Jan/2026 13:59:37] ERROR [django.request:253] Internal Server Error: /api/v2/import-scan/
The command to upload is:
curl -sS -X POST "$DD_ENDPOINT/api/v2/import-scan/" \
-H "Authorization: Token $DD_TOKEN" \
-F "scan_type=Nuclei Scan" \
-F "engagement=$ENGAGEMENT_ID" \
-F "active=true" \
-F "verified=false" \
-F "minimum_severity=Info" \
-F "file=@nuclei.jsonl";The scan is for a dvwa container deploy. Attach the report.
Renamed to txt (github can not upload jsonl files)
nuclei.txt
Reactions are currently unavailable