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

Missing API ID error on a fresh Splunk installation #1332

Open
AlexRuiz7 opened this issue Jun 3, 2022 · 0 comments
Open

Missing API ID error on a fresh Splunk installation #1332

AlexRuiz7 opened this issue Jun 3, 2022 · 0 comments
Assignees
Labels
type/bug Bug issue

Comments

@AlexRuiz7
Copy link
Member

Wazuh Splunk Rev
4.3 8.1.4 4301

Description
This issue is related to the browser's cache.
The API information, included its ID or KEY, is stored on the browser's session storage. If the Splunk platform changes, for example, after an upgrade from a Splunk v8.2.5 to a Splunk v8.2.6, and the browser is not closed or refreshed, the information about the previous API is kept on the session storage. The API ID was generated by the previous Splunk's KVstore (database), so when this KEY is provided to our backend, the API cannot be found as it does not exist on the current Splunk's KVstore.

However, the error message is confusing, as the API ID is provided to the backend, only that it is not valid.

Steps to reproduce

  1. Create a Splunk environment, install the App and add an API.
  2. Change the environment to a different version of Splunk. Do not close or refresh the browser.
  3. Install the App on the new environment and launch the App.
  4. See the Missing API ID error.

Screenshots

missing_API_ID

missing_API_ID_2

Additional context
Content of /opt/splunk/var/log/splunk/SplunkAppForWazuh.log

ERROR: 2022/06/03 16:19:37: 'Error updating in DB module: Missing API ID'
ERROR: 2022/06/03 16:19:37: 'Error checking API connection: Missing API ID'
ERROR: 2022/06/03 16:19:37: 'Error updating in DB module: Missing API ID'
ERROR: 2022/06/03 16:19:37: 'Error checking API connection: Missing API ID'
ERROR: 2022/06/03 16:19:38: 'Error updating in DB module: Missing API ID'
ERROR: 2022/06/03 16:19:38: 'api: Error making API request: Missing API ID'
ERROR: 2022/06/03 16:19:38: 'Error updating in DB module: Missing API ID'
ERROR: 2022/06/03 16:19:38: 'api: Error making API request: Missing API ID'
@AlexRuiz7 AlexRuiz7 added the type/bug Bug issue label Jun 3, 2022
@vikman90 vikman90 added this to the Release 4.4.0 milestone Aug 31, 2022
@gdiazlo gdiazlo removed this from the Release 4.4.0 milestone Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bug issue
Projects
None yet
Development

No branches or pull requests

3 participants