Skip to main content

Jenkins errors and solutions

The following errors may occur while using Jenkins for CI/CD integration.

Invalid JWT/S token error when performing operations

Error message

failed to list keypairs: status_code=401, message={
  "error" : {
    "status" : "wrong_token",
    "message" : "Invalid JWT/S token."
  }
}, nested_error=<nil>

Description

This error occurs when your credentials are not configured correctly, for example:

  • Your environment variables were set in system variables instead of in Jenkins.

  • One or more of your credentials were not provided correctly.

Solution

  1. Make sure that your environment variables are set in Jenkins.

  2. Make sure that you provided your API key, client authentication certificate password, and other credentials are correct.