-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
Error #312
Comments
Can you share the full exception trace? Also can you share a sample ZIP that can trigger this? |
https://drive.google.com/file/d/1ZeipH8_v2BGr_P0Q2fcCYwkH5nay4AIp/view?usp=sharing |
Thanks, I will take a look and get back. |
This error seems to occur from semgrep that we use internally. And source code zip you shared is not a node.js or javascript application. Please try to replicate the same with a node.js application. |
I get the same error using a node.js application. |
Exception on /upload/ [POST]
Traceback (most recent call last):
File "E:\nodejsscan\mvenv\Lib\site-packages\flask\app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\nodejsscan\mvenv\Lib\site-packages\flask\app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\nodejsscan\mvenv\Lib\site-packages\flask\app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "E:\nodejsscan\mvenv\Lib\site-packages\flask\app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\nodejsscan\nodejsscan\app.py", line 100, in upload
return handle_upload(app, request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\nodejsscan\web\upload.py", line 85, in handle_upload
results = nodejsscan.scan(app_dir)
^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\nodejsscan\nodejsscan\nodejsscan.py", line 73, in scan
result = call_njsscan(node_source)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\nodejsscan\nodejsscan\nodejsscan.py", line 50, in call_njsscan
scan_result = scanner.scan()
^^^^^^^^^^^^^^
File "E:\nodejsscan\mvenv\Lib\site-packages\njsscan\njsscan.py", line 44, in scan
result = scanner.scan()
^^^^^^^^^^^^^^
File "E:\nodejsscan\mvenv\Lib\site-packages\libsast\scanner.py", line 65, in scan
self.options).scan(valid_paths)
^^^^^^^^^^^^^^^^^
File "E:\nodejsscan\mvenv\Lib\site-packages\libsast\core_sgrep\semantic_sgrep.py", line 41, in scan
self.format_output(sgrep_out)
File "E:\nodejsscan\mvenv\Lib\site-packages\libsast\core_sgrep\semantic_sgrep.py", line 50, in format_output
for find in results['results']:
The text was updated successfully, but these errors were encountered: