watson-developer-cloud / visual-recognition-code-pattern

33 stars 18 forks source link

Credential error in application from Watson Visual Recognition starter kit #9

Open mdarden opened 4 years ago

mdarden commented 4 years ago

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.

mamoonraja commented 4 years ago

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.

markstur commented 4 years ago

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

markstur commented 4 years ago

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.