pmservice / drug-selection

Apache License 2.0
4 stars 8 forks source link

404 error, end point needs to be corrected #2

Closed niteshthakrar closed 6 years ago

niteshthakrar commented 7 years ago

Line 76 in app.js needs to be var scoreURI = env.baseURL + '/score/' + req.body.context + '?accesskey=' + env.accessKey;

yoowoo commented 7 years ago

Hi @niteshthakrar, could you please paste the WML service url property from the bluemix service credentials? I'm expecting

"url": "https://ibm-watson-ml.mybluemix.net"

which needs to be followed by /pm/v1/, as described here

niteshthakrar commented 7 years ago

Hi,

The url I have (from Bluemix credentials and that works is): https://palblyp.pmservice.ibmcloud.com/pm/v1

So I guess the Credentials now include the pm/v1 which it might not have in the past!!

Thanks,

Nitesh

Best Regards

Nitesh P Thakrar

IBM Digital Business Group

Developer Ecosystem and Startups

Mobile: +33 (0)6 29 22 17 81 21, av. Simone Veil

e-mail: nitesh@fr.ibm.com ZAC Nice Méridia

@niteshpthakrar https://my-dbg-guru.mybluemix.net 06200 Nice, France

From: yoowoo notifications@github.com To: pmservice/drug-selection drug-selection@noreply.github.com Cc: Nitesh P THAKRAR/France/Contr/IBM@IBMFR, Mention mention@noreply.github.com Date: 25/04/2017 09:17 Subject: Re: [pmservice/drug-selection] 404 error, end point needs to be corrected (#2)

Hi @niteshthakrar, could you please paste the WML service url property from the bluemix service credentials? I'm expecting "url": "https://ibm-watson-ml.mybluemix.net" which needs to be followed by /pm/v1/, as described here ? You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Sauf indication contraire ci-dessus:/ Unless stated otherwise above: Compagnie IBM France Siège Social : 17 avenue de l'Europe, 92275 Bois-Colombes Cedex RCS Nanterre 552 118 465 Forme Sociale : S.A.S. Capital Social : 657.364.587 ? SIREN/SIRET : 552 118 465 03644 - Code NAF 6202A

yoowoo commented 7 years ago

Thanks for a quick response. Was this instance ordered recently?

niteshthakrar commented 7 years ago

Yes last week (Wednesday, 19th).

Best Regards

Nitesh P Thakrar

IBM Digital Business Group

Developer Ecosystem and Startups

Mobile: +33 (0)6 29 22 17 81 21, av. Simone Veil

e-mail: nitesh@fr.ibm.com ZAC Nice Méridia

@niteshpthakrar https://my-dbg-guru.mybluemix.net 06200 Nice, France

From: yoowoo notifications@github.com To: pmservice/drug-selection drug-selection@noreply.github.com Cc: Nitesh P THAKRAR/France/Contr/IBM@IBMFR, Mention mention@noreply.github.com Date: 25/04/2017 10:04 Subject: Re: [pmservice/drug-selection] 404 error, end point needs to be corrected (#2)

Thanks for a quick response. Was this instance ordered recently? ? You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Sauf indication contraire ci-dessus:/ Unless stated otherwise above: Compagnie IBM France Siège Social : 17 avenue de l'Europe, 92275 Bois-Colombes Cedex RCS Nanterre 552 118 465 Forme Sociale : S.A.S. Capital Social : 657.364.587 ? SIREN/SIRET : 552 118 465 03644 - Code NAF 6202A

yoowoo commented 7 years ago

The url will probably change with time, but until that, the code need to be modified to handle the differences between Bluemix regions. Thanks for opening and pinpointing the issue.

yoowoo commented 7 years ago

Please give it another try...