Adding Gemini AI API key does not work, error API-1086 : Missing or invalid configuration
search cancel

Adding Gemini AI API key does not work, error API-1086 : Missing or invalid configuration

book

Article ID: 419923

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

When configuring Vaia / Clarity AI with Gemini and trying to use the AI actions, error API-1086 : Missing or invalid configuration is thrown

STEPS TO REPRODUCE:

  1. Configure Integration instance using the integration URL as: https://aiplatform.googleapis.com/v1/projects/XXXXXXXXXXXX/locations/global/publishers/google/models/gemini-2.5-pro:streamGenerateContent
  2. Setup the API key as provided
  3. Perform any Clarity AI Action.

Expected Results: 

  • AI action is performed.

Actual Results:

Error in UI - API-1086 : Missing or invalid configuration.

The following error is thrown in the app-ca logs:

ERROR 2025-11-24 12:33:49,219 [http-nio-8080-exec-92] rest.GenerateContentsResource (clarity:admin:5428043__4462828F-D406-4AD7-A1BF-480CD400DD8B:PPM_REST_API) (ef01ebb2-da6a-453d-894c-575f00f37946) Possible issue with authentication or request to the generative AI to generate the status summary contents. Status code is : 401 , Details : [{
 "error": {
   "code": 401,
   "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
   "status": "UNAUTHENTICATED"
 }
}
]
ERROR 2025-11-24 12:33:49,220 [http-nio-8080-exec-92] ppm.rest (clarity:admin:5428043__4462828F-D406-4AD7-A1BF-480CD400DD8B:PPM_REST_API) (ef01ebb2-da6a-453d-894c-575f00f37946) 
com.ca.ppm.rest.exception.APIAppException: API-1086 : Missing or invalid configuration.

Environment

Clarity 16.3.3, 16.4.0

Cause

DE179224

Resolution

Fixed in:

  • Clarity 16.4.1
  • Clarity 16.4.0 Patch 1 (16.4.0.1)