Hi,
I'm attempting to call the Google Vertex AI Gemini API (e.g., gemini-1.5-pro
or gemini-1.0-pro-vision-latest
) from callin.io using a Google Service Account credential, but I'm encountering authentication/permission errors.
The Problem:
- The callin.io “Google Service Account” credential fails to save when I paste the full JSON key content (error: “Couldn’t connect with these settings” / likely “secretOrPrivateKey must be an asymmetric key…”).
- It only saves if I paste just the private key block (
-----BEGIN...END-----
). The “Upload file” option is not visible in my UI (callin.io Cloud). - However, when using the credential saved this way, API calls via the HTTP Request node fail with either
404 Not Found
(even forgemini-1.0-pro-vision-latest
inus-central1
) or400/403 Bad Request
(e.g.,Project 297... is not allowed to use Publisher Model projects/creamusai/...
).
Context:
- callin.io Version: 1.87.1 (latest Beta)
- callin.io Setup: callin.io Cloud
- GCP Project checks (APIs enabled: Vertex AI, IAM Credentials; SA roles assigned:
Vertex AI User
+SA Token Creator
; Billing linked & active) all appear correct for the target project (creamusai
, number297...
). - Multiple new keys have been generated and tested. JSON key syntax has been validated.
It seems there might be an issue with how callin.io Cloud handles the Google Service Account credential in this version, either during the saving process with the full JSON or during the actual authentication request when saved with only the key block. How can I resolve this to successfully call the Vertex AI API?
Thanks!
Marko
To isolate the issue, I tested the authentication outside of callin.io using the Google Cloud SDK command line:
- I successfully activated the service account using
gcloud auth activate-service-account --key-file="<path_to_my_new_key>".json "
. It confirmedActivated service account credentials for: [my-service-account-email]
. - I then successfully generated a Bearer token using
gcloud auth print-access-token
. - However, when I used this generated Bearer token directly in the callin.io HTTP Request node (using Header Auth:
Authorization: Bearer <TOKEN>
), the API call still failed with the same400 Bad Request
error:Project 297... is not allowed to use Publisher Model projects/creamusai/...
.
This seems to confirm the Service Account key and basic GCP permissions are working correctly outside callin.io, but the API call still fails when initiated from the callin.io Cloud environment, even with direct token authentication.
This thread was automatically closed 90 days following the last response. New replies are no longer permitted.