pmservice / drug-selection

Apache License 2.0
4 stars 8 forks source link

Access key of Machine Learning is incorrect when service is bound to an app. #1

Closed lionelmace closed 7 years ago

lionelmace commented 7 years ago

I successfully deployed this sample.

When hardcoding both the defaultBaseURL and defaultAccessKey values in the app.js, it works fine. Yet, when binding the Machine Learning to the app, the generated credentials, especially the accessKey is incorrect, the score funtion cannot be called and the app does not work.

Have you faced the same issue?

yoowoo commented 7 years ago

Don't understand the scenario, are you trying to run the application locally?

yoowoo commented 7 years ago

@lionelmace I wonder if it might be connected to this issue. What is the original Bluemix service url you need to modify?

lionelmace commented 7 years ago

Yes I'm trying to run the app locally. @yoowoo

lionelmace commented 7 years ago

I forked the project and use cfenv module to bind the credentials. It runs fine locally now. The result is here. https://github.com/lionelmace/drug-selection @yoowoo

yoowoo commented 7 years ago

@lionelmace thanks for the project, but still I cannot reproduce the issue. Anyway, I've pulled and slightly modified your project under cfenv branch, but since docs refer to different code, the master branch has to wait.