#188 Java TK + Inferstack. Connection issue.

Mike Lee Mon 30 Jun 2014

I'm trying to use the Java TK to connect an Inferstack device but I keep getting 404 responses so my issue seems to be with the url. Thoughts?

Java TK code...

HClient client = HClient.open("http://XXX.XXX.XXX.XX:9191/api/", "username", "password");
client.open();  

Results in...

Exception in thread "main" org.projecthaystack.client.CallAuthException: Unexpected Response Code: 404

at org.projecthaystack.client.HClient.authenticate(HClient.java:611) at org.projecthaystack.client.HClient.open(HClient.java:81) at org.projecthaystack.client.HClient.open(HClient.java:38) at org.projecthaystack.client.Sandbox.main(Sandbox.java:15)

I've tried other variants to the URL with no luck. What am I doing wrong?

Mike Jarmy Mon 30 Jun 2014

You need to include the name of your project after "api", like so:

"http://XXX.XXX.XXX.XX:9191/api/myProj/"

Mike Lee Mon 30 Jun 2014

Thanks. I must be missing a deeper understanding of how things work. The name of my project is InferStack under my settings module. I've looked at the documentation that was provided to me and everything seems clear after I connect but, there doesn't seem to be much support troubleshooting connection issues.

If your open to you, you can email me directly and I can setup a guest login to the device for you to review. Or please feel free to point me in other directions.

Andy Frank Mon 30 Jun 2014

Mike - your project is most likely infer:

http://<host>/api/infer

I'll followup over email

Mike Lee Mon 30 Jun 2014

That worked! Did miss this in the documentation?

Login or Signup to reply.