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

Provided API key could not be found, error BXNIM0415E #2

Open
csozac opened this issue Oct 4, 2020 · 1 comment
Open

Provided API key could not be found, error BXNIM0415E #2

csozac opened this issue Oct 4, 2020 · 1 comment

Comments

@csozac
Copy link

csozac commented Oct 4, 2020

I have a problem to run Diet example, I get this error message:

INFO: Lookup Bearer Token from IAM (ASYNCH)
Oct 03, 2020 9:55:37 PM com.ibm.wmlconnector.impl.ConnectorImpl doCall
SEVERE: status: 400
Oct 03, 2020 9:55:37 PM com.ibm.wmlconnector.impl.ConnectorImpl doCall
SEVERE: {"errorCode":"BXNIM0415E","errorMessage":"Provided API key could not be found","context":{"requestId":"1d6bc01259e546dea29201498f35a917","requestType":"incoming.Identity_Token","userAgent":"My own REST client","url":"https://iam.cloud.ibm.com","instanceId":"iamid-5.9-8603-461329e-8db965548-5ls5d","threadId":"2fbb8c","host":"iamid-5.9-8603-461329e-8db965548-5ls5d","startTime":"04.10.2020 00:55:37:690 GMT","endTime":"04.10.2020 00:55:37:762 GMT","elapsedTime":"72","locale":"en_US","clusterName":"iam-id-prdal10-ljdb"}}

I check and recreate my own API Key and set the key in MyCredentials class.

Please advice.

@achabrier
Copy link
Collaborator

Hi,

You should first check if you are using v1 or v2 instances (more or less menas created before Sept 2020, or since Sept 3rd 2020)
With the new instances the flag USE_v4_FINAL should be set to true.
And then the apikey to use are not anymore the ones obtained form the WML instance where you create credentials for this instance,
but you should now use you general apikey for your user than you can get here:
image
then
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants