Re: [gs-discussion] Problem with api

71 views
Skip to first unread message

Google Cloud Storage Team

unread,
Mar 22, 2013, 6:18:28 PM3/22/13
to gs-discussion
Hello,

It looks like the most important part of the error message was at the bottom of the log, and it got lost in the copy and paste process.  Would you be willing to post this question over on Stack Overflow and tag it with google-cloud-storage?  Our team will be happy to take a look at it over there. 

Best Regards,
Benson
Google Cloud Storage Team


On Fri, Mar 22, 2013 at 7:31 AM, <j...@paranyo.com> wrote:
Hello,

I want to retrieve some information from my google storage so I used the api with this code :

DECORATOR = oauth2decorator_from_clientsecrets(
    CLIENT_SECRETS,
    scope=[
         'https://www.googleapis.com/auth/devstorage.read_only',
    message=MISSING_CLIENT_SECRET_MESSAGE)
http = DECORATOR.http()
service_storage = build("storage", "v1beta1", http=http)
list_response = service_storage.objects().list(bucket="jba-directory").execute()

The weird thing is the error message that I receive ; I have nothing after the 'HttpError:' :

Traceback (most recent call last): 
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1529, in __call__ rv = self.router.dispatch(request, response) 
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1278, in default_dispatcher return route.handler_adapter(request, response) 
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1102, in __call__ return handler.dispatch() 
File "/base/data/home/apps/s~jba-gae-boilerplate/dev.366109531044378431/boilerplate/lib/basehandler.py", line 162, in dispatch webapp2.RequestHandler.dispatch(self) 
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 572, in dispatch return self.handle_exception(e, self.app.debug) 
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 570, in dispatch return method(*args, **kwargs) 
File "/base/data/home/apps/s~jba-gae-boilerplate/dev.366109531044378431/web/lib/oauth2client/appengine.py", line 469, in check_oauth return method(request_handler, *args, **kwargs) 
File "/base/data/home/apps/s~jba-gae-boilerplate/dev.366109531044378431/web/handlers.py", line 191, in get service_storage.objects().list(bucket=bucket).execute(http=http) 
File "/base/data/home/apps/s~jba-gae-boilerplate/dev.366109531044378431/web/lib/oauth2client/util.py", line 120, in positional_wrapper return wrapped(*args, **kwargs) 
File "/base/data/home/apps/s~jba-gae-boilerplate/dev.366109531044378431/web/lib/apiclient/http.py", line 678, in execute raise HttpError(resp, content, uri=self.uri) 
HttpError:


Can anyone help me ? 
Thanks

--
You received this message because you are subscribed to the Google Groups "Google Cloud Storage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gs-discussio...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages