QUESTION

When executing the panther_analysis_tool validate command, I encountered a Validation failed error in the output. How can I troubleshoot this issue?

ANSWER

To troubleshoot this:

  1. Ensure you're using the most recent version of panther_analysis_tool.

  2. Verify that your API token has the required Panther permissions to execute this command. For the validate command, you need either Bulk Upload Validate or Bulk Upload.

  3. Check that your --api-token and --api-host configurations are up-to-date.

  4. Try generating a new Panther API token and see if that resolves the issue. You can test the new token using our API Playground.

  5. Make sure you've synced to the latest version of panther-analysis.

  6. Run the command with the --debug flag: pat --debug validate to view the raw response for additional context to the error you're encountering. Be aware, this will produce verbose output. Alternatively, you can run pipenv run pat --debug validate > output.txt 2>&1 to pipe the output to a text file.

If you're still encountering issues after trying these troubleshooting steps, please contact the Panther support team and provide them with the following information:

  1. The full command you're attempting to execute.

  2. The complete output, including any error messages.

  3. The raw response or text file generated from using the debug flag.