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

The -addSource fails #31

Open
marklaw2022 opened this issue Apr 21, 2023 · 0 comments
Open

The -addSource fails #31

marklaw2022 opened this issue Apr 21, 2023 · 0 comments

Comments

@marklaw2022
Copy link

Issue 1: The -addSource method fails

Traceback (most recent call last):
File "/root/collector-management-client-main/env/lib64/python3.6/site-packages/requests/models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "../sumo_mgmt.py", line 748, in
add_source(collectors)
File "../sumo_mgmt.py", line 464, in add_source
collector['description'] = r.json()['message']
File "/root/collector-management-client-main/env/lib64/python3.6/site-packages/requests/models.py", line 917, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: [Errno Expecting value]

<title>502 Bad Gateway</title>

502 Bad Gateway

: 0

Issue 2: The -addSource doesn't not support the -filter option

-addSource /root/collector-management-client-main/json/windows_eventlog_vdi.json -filter name=AP
usage: sumo_mgmt.py [-h] [-upgrade] [-batchSize] [-addSource] [-accessid]
[-accesskey] [-url] [-filter] [-listVersions]
[-getSources] [-updateSource ]
[-listOfflineCollectors [1-100]]
[-deleteOfflineCollectors [1-100]] [-assignBudget] [-y]
sumo_mgmt.py: error: argument -filter: expected 1 argument

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant