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

Watson API URL changed #7

Open
bookpbk opened this issue Oct 12, 2016 · 1 comment
Open

Watson API URL changed #7

bookpbk opened this issue Oct 12, 2016 · 1 comment

Comments

@bookpbk
Copy link

bookpbk commented Oct 12, 2016

I happen to stumble on a bug that is caused by incorrect Watson API address, perhaps because URL is migrated.

The code below is where the bug in the file com.ibm.personafusion.Config is, and the fix (that seems to work)

<---------------------CODE------------------------>

package com.ibm.personafusion;
import com.ibm.personafusion.db.CloudantClient;
public class Config
{

/** Cloudant **/
public static final int CLOUDANT_PORT = 443;
public static final String CLOUDANT_NAME = "talent-manager";

/** Watson User Modeling **/

public static final String WATSON_PROF_API =  "/v2/profile";
public static final String WATSON_VIZ_API = "/v2/visualize";

/* OLD
public static final String WATSON_PROF_API =  "/api/v2/profile";
public static final String WATSON_VIZ_API = "/api/v2/visualize";*/

public static CloudantClient cc = new CloudantClient();
/* Mobile Data Config */
public static final String MOBILE_DATA_APP_ID = "";
public static final String MOBILE_DATA_APP_SECRET = "";

}

@poplav
Copy link

poplav commented Feb 14, 2017

@bookpbk If you see a bug and have a fix you should open a PR!

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