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

[Bug] Zscaler Analyzer v1.3 failing execution #1268

Open
SgtMoose opened this issue Jul 10, 2024 · 1 comment
Open

[Bug] Zscaler Analyzer v1.3 failing execution #1268

SgtMoose opened this issue Jul 10, 2024 · 1 comment

Comments

@SgtMoose
Copy link

[Bug] Zscaler Analyzer v1.3 failing execution

Request Type

Bug

Work Environment

Production

Question Answer
OS version (server) Azure Container (Docker)
Cortex Analyzer Name Zscaler_1_3
Cortex Analyzer Version 1.3
Cortex Version 3.1.8-1

Description

After configuration, the analyzer fails with the following errors:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 974, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/json/decoder.py", line 355, 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 "/worker/Zscaler/zscaler.py", line 111, in
ZscalerAnalyzer().run()
File "/worker/Zscaler/zscaler.py", line 102, in run
response = s.json()
^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 978, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Steps to Reproduce

(keep this section only if the issue relates to a bug)

  1. Configure analyzer with basic username, password, api key, and base url
  2. Attempt analyzer run with any of th e4 supported observable types

Complementary information

This looks to be the same issue reported in issue 1217 that has not been worked yet.

@SgtMoose
Copy link
Author

This can be closed. Figured out that it was a terminology issue between what Zscaler means when it says Base URL versus what the Analyzer config actually needs for the Base URL.

Zscaler documentation states that part of the base URL is https://zsapi/(Zscaler Cloud Name)/api/v1. Since I saw in the script that /api/v1 is being appended, I shortened the base URL to https://zsapi.(Zscaler Cloud Name), in my case https://zsapi.zscalertwo.net and the Analyzer successfully worked.

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