visual-recognition-code-pattern icon indicating copy to clipboard operation
visual-recognition-code-pattern copied to clipboard

Credential error in application from Watson Visual Recognition starter kit

Open mdarden opened this issue 5 years ago • 3 comments

I deployed this starter kit to IKS, and I get this error when trying to infer image

DevX team things this the app may not be looking for Kube environment variables correctly.

mdarden avatar Mar 31 '20 21:03 mdarden

We look for watson_vision_combined_apikey and watson_vision_combined_url, that's how visual recognition is in cf environment, so we have to stick to this pattern. My guess is that env variables set in Kube env have visual_recognition_* pattern.

mamoonraja avatar Mar 31 '20 21:03 mamoonraja

PR #12 can be used as a workaround until the env can be set as described by Mamoon.

markstur avatar Apr 04 '20 00:04 markstur

The workaround was merged with the above PR in the new IBM repo. Need to migrate the starter kit to use the new one and archive this one. Also, it is meant to be a temporary fix. Ideally the env would be provided like Mamoon suggests (and what is shown in the download creds) instead of the current style which was never implemented in this code.

markstur avatar May 26 '20 19:05 markstur