Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication at AICore fails for AI-SDK-JAVA #113

Open
MSKGIT33 opened this issue Oct 21, 2024 · 1 comment
Open

Authentication at AICore fails for AI-SDK-JAVA #113

MSKGIT33 opened this issue Oct 21, 2024 · 1 comment
Labels
question Further information is requested

Comments

@MSKGIT33
Copy link

I am trying to run the AI-SDK-JAVA API following the readme "SAP Cloud SDK for AI (for Java)"

I had setup the environment variable with the credentials from my AICORE instance on BTP

image

Now, after running "mvn spring-boot:run" I get an error which indicates an issue with the authentication (JWT token retrieval ends with error 401

image

My environment variable AICORE_SERVICE_KEY represents what I have downloaded from BTP as on the first screenshot.

How can I proceed now?

@MatKuhr
Copy link
Member

MatKuhr commented Oct 22, 2024

Please double check your env var. Getting a bad credentials indicates there might be a copy/paste mistake. If you are sure the secret is correct, could you please try it out in Postman or similar?

@jjtang1985 jjtang1985 added the question Further information is requested label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants