I’ve implemented in my project google’s Vertex AI using a service account that has all the permissions required.
I was never able to get an answer from the LLM for any model.
When using directly an API key for Google Gemini APIs it works perfectly.
I’m trying now to use Imagen 3 model which is not available via the API key.
Did anyone encounter this problem? I wasted at least 100 iterations on trying to fix this at multiple stages in time.
Currently the error I’m getting is this:
[Imagen] Getting auth client…
[Imagen] Requesting access token…
[Imagen] Error getting access token: Error: error:1E08010C:DECODER routines::unsupported
at Sign.sign (node:internal/crypto/sig:128:29)
at Object.sign (/home/runner/workspace/node_modules/jwa/index.js:152:45)
at Object.jwsSign [as sign] (/home/runner/workspace/node_modules/jws/lib/sign-stream.js:32:24)
at GoogleToken._GoogleToken_requestToken (/home/runner/workspace/node_modules/gtoken/build/src/index.js:235:27)
at GoogleToken._GoogleToken_getTokenAsyncInner (/home/runner/workspace/node_modules/gtoken/build/src/index.js:180:97)
at GoogleToken._GoogleToken_getTokenAsync (/home/runner/workspace/node_modules/gtoken/build/src/index.js:160:173)
at GoogleToken.getToken (/home/runner/workspace/node_modules/gtoken/build/src/index.js:110:102)
at JWT.refreshTokenNoCache (/home/runner/workspace/node_modules/google-auth-library/build/src/auth/jwtclient.js:173:36)
at JWT.refreshToken (/home/runner/workspace/node_modules/google-auth-library/build/src/auth/oauth2client.js:187:24)
at JWT.refreshAccessTokenAsync (/home/runner/workspace/node_modules/google-auth-library/build/src/auth/oauth2client.js:247:30)
at JWT.getAccessTokenAsync (/home/runner/workspace/node_modules/google-auth-library/build/src/auth/oauth2client.js:276:34)
at JWT.getAccessToken (/home/runner/workspace/node_modules/google-auth-library/build/src/auth/oauth2client.js:258:25)
at getGoogleCloudAccessToken (/home/runner/workspace/server/services/activityImageGeneration.ts:135:38)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async generateActivityImage (/home/runner/workspace/server/services/activityImageGeneration.ts:287:25)
at async (/home/runner/workspace/server/routes/activityImages.ts:154:24) {
library: ‘DECODER routines’,
reason: ‘unsupported’,
code: ‘ERR_OSSL_UNSUPPORTED’
}
I’ve created a new service account with Vertex AI user permissions and made sure that all the functions are called as per google’s requirement.
Still I’m getting the above error.
Did anyone else encounter this issue?