appoxy / aws

Amazon Web Services (AWS) Ruby Gem
https://rubygems.org/gems/aws
236 stars 87 forks source link

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

Closed gopalakrishnanv closed 11 years ago

gopalakrishnanv commented 11 years ago

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 commented 11 years ago

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