Subject: Issue with Vertex AI JSON Credential Configuration - "Incomplete JSON segment at the end" #3953
Labels
bug
Something isn't working
Issue - Unassigned / Actionable
Clear and approved. Available for contributors to pick up.
App Version
v3.18.3
API Provider
Google Vertex AI
Model Used
gemini 2.5 flash
🔁 Steps to Reproduce
Setup:
Exact Actions (within RooCode):
gen-lang-client-0713546307
us-central1
gemini-1.5-flash-001
(或您在成功的本地测试中使用的确切 Gemini 模型 ID,例如gemini-2.5-flash-preview-05-20
)What happened after each step (within RooCode):
Verification of Credentials and GCP Setup (performed independently outside of RooCode):
google-cloud-aiplatform
SDK installed.GOOGLE_APPLICATION_CREDENTIALS
environment variable was set to the file path of the exact same service account JSON key file used in the RooCode configuration attempt.vertexai.init(project='gen-lang-client-0713546307', location='us-central1')
.GenerativeModel('gemini-1.5-flash-001')
or the model specified above).model.generate_content("Hello, tell me about yourself.")
).💥 Outcome Summary
Attempting to configure RooCode's Vertex AI integration by pasting a validated Google Cloud service account JSON key results in an "Incomplete JSON segment at the end" error. This occurs despite the exact same JSON key, Project ID, and Region working perfectly for Vertex AI API calls in an independent local Python SDK test, indicating the issue likely lies with RooCode's JSON credential handling.
📄 Relevant Logs or Errors (Optional)
The text was updated successfully, but these errors were encountered: