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

<error status='401' url='/api/images'> #121

Closed
gopalakrishnanv opened this issue Feb 6, 2013 · 1 comment
Closed

<error status='401' url='/api/images'> #121

gopalakrishnanv opened this issue Feb 6, 2013 · 1 comment

Comments

@gopalakrishnanv
Copy link

Hi,

I have setup a delta-cloud server in my local machine. And I try to communicate the openstack via deltacloud server. But i got some exception on while execute the below code. the exception is "error status='401' url='/api/images'"

The below lines are sample code for list the available images in openstack server.:

String url = "http://hostname:3001/api/images";
String username = "openstack_username";
String password= "openstack_password";

HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet(url);
request.addHeader("username", user);
request.addHeader("password", password);
HttpResponse httpResponse = client.execute(request);
BufferedReader rd = new BufferedReader(new InputStreamReader(httpResponse.getEntity().getContent()));
String result = rd.readLine();

Any one can u provide suggestion please.

@marios
Copy link
Contributor

marios commented Feb 6, 2013

Hi Gopalan - this sounds like an authentication issue - however I'm confused about why this ticket is raised against the aws rubygem (from your description you mentioned openstack). Can you please file an issue against the deltacloud project itself - see our contact page/contact.html

I'm going to go ahead and close this ticket - let's pick this up against the deltacloud project (you can use our mailing list, irc or open a jira ticket).

thanks, marios

@marios marios closed this as completed Feb 6, 2013
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