infobyte / faraday

Open Source Vulnerability Management Platform
https://www.faradaysec.com
GNU General Public License v3.0
4.72k stars 875 forks source link

error when show workspaces #496

Closed abdoqaidhaidar closed 1 month ago

abdoqaidhaidar commented 1 month ago

Hi

i have this error

Faraday> workspace select mhsinj EXCEPTION of type 'Exception' occurred with message: Unknown error: <class 'Exception'> - Unknown error: <class 'TypeError'> - string indices must be integers, not 'str'

Faraday> workspace dashboard EXCEPTION of type 'RequestError' occurred with message: ("operation=client_error, response=Response(url='http://127.0.0.1:5985/_api/v3/ws/filter?q=%7B%22filters%22%3A%20%5B%7B%22name%22%3A%20%22active%22%2C%20%22op%22%3A%20%22eq%22%2C%20%22val%22%3A%20%22true%22%7D%5D%7D', method='GET', body='<!doctype html>\n\n400 Bad Request\n

Bad Request

\n

Foreign field active not found in submodel

\n', headers=Headers({'content-type': 'text/html; charset=utf-8', 'content-length': '133', 'date': 'Sat, 08 Jun 2024 16:59:17 GMT'}), status_code=400, client_response=<Response [400 BAD REQUEST]>)", Response(url='http://127.0.0.1:5985/_api/v3/ws/filter?q=%7B%22filters%22%3A%20%5B%7B%22name%22%3A%20%22active%22%2C%20%22op%22%3A%20%22eq%22%2C%20%22val%22%3A%20%22true%22%7D%5D%7D', method='GET', body='<!doctype html>\n\n400 Bad Request\n

Bad Request

\n

Foreign field active not found in submodel

\n', headers=Headers({'content-type': 'text/html; charset=utf-8', 'content-length': '133', 'date': 'Sat, 08 Jun 2024 16:59:17 GMT'}), status_code=400, client_response=<Response [400 BAD REQUEST]>))

my workspaces

image

faraday-agent-dispatcher==3.2.1 faraday-agent-parameters-types==1.5.1 faraday-cli==2.1.11 faraday-plugins==1.18.0 faradaysec==5.2.2

Linux root 6.6.9-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.6.9-1kali1 (2024-01-08) x86_64 GNU/Linux

ezk06eer commented 1 month ago

@abdoqaidhaidar if you want to submit a but greport there is a template for it. we will appreciate you follow the rules for reporting a bug.

Before submiting a bug please update all of the components to the latest, as it is the only way to prepare the scenario, plase next time upgrade all of the components to the latest version.

faraday-agent-dispatcher 3.4.1
faraday-agent-parameters-types 1.6.0
faraday-cli 2.1.11
faraday-plugins 1.18.0
faradaysec 5.3.0

We know dashboard command is not available. it will be fixed soon, but for compatibility upgrade all of the software to latest.

Proper project to send the bug report to: faraday-cli

closing the issue as invalid.

Regards!