Google cloud assist (1 Viewer)

smig

Registered User.
Local time
Today, 19:11
Joined
Nov 25, 2009
Messages
2,209
After giving up with GDrive (Almost) I want try using Google cloud for automatic backups

I'm trying this code but I gen an "AccessDenied", "Anonymous Caller does not have storage objects"
What is wrong with the keys ?
Code:
With xmlHTTP
    .Open "GET", "https://storage.googleapis.com/MyBucket", False    ' (Bucket created in the Google Cloud Consule)
    .setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
    .setRequestHeader "Content-Length", Len("Request=" & strXML)
    .setRequestHeader "x-goog-project-id", MyAppKey     ' (App Key was taken from Google Cloud Consule)
    .setRequestHeader "&Authorization", MyGoogleKey   ' (Google Key was taken from Google Cloud Consule - Cloud Storage IDs)
    .send (strXML)
End With
 

theDBguy

I’m here to help
Staff member
Local time
Today, 09:11
Joined
Oct 29, 2018
Messages
21,456
Hi. Just a guess but try setting the headers first before opening the connection.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 11:11
Joined
Feb 28, 2001
Messages
27,143
Part of your problem is obvious:

"Anonymous Caller does not have storage objects"

The server on the other end doesn't know who you are so, to protect your privacy (which is probably part of their privacy policy), they are blocking you. You need to somehow identify yourself to that server. Of course, you are doing that, but it must not be working. Which means that there is something wrong with the part that presents your authorization key.

Adam has kindly provided a search that should give you some leads.
 

smig

Registered User.
Local time
Today, 19:11
Joined
Nov 25, 2009
Messages
2,209
something is definitely wrong with the key I'm using

I'll appreciate any help with creating the authorization key
Google reference is so unclear for me :(
 

vba_php

Forum Troll
Local time
Today, 11:11
Joined
Oct 6, 2019
Messages
2,880
I'll appreciate any help with creating the authorization key
Google reference is so unclear for me :(
smig,

do you know that google has forums for almost all of it's products? why not ask this question here?

https://cloud.google.com/community/

i ask questions about chrome and gmail all the time on those subdomains. moreover, you are storing Access back files in the cloud? why isn't your network good enough?
 

smig

Registered User.
Local time
Today, 19:11
Joined
Nov 25, 2009
Messages
2,209
smig,

do you know that google has forums for almost all of it's products? why not ask this question here?

https://cloud.google.com/community/

i ask questions about chrome and gmail all the time on those subdomains. moreover, you are storing Access back files in the cloud? why isn't your network good enough?
Thanks
I want to have an automatic backup routine for the end users
 

vba_php

Forum Troll
Local time
Today, 11:11
Joined
Oct 6, 2019
Messages
2,880
i'm gonna unsubscribe to this now. good luck with it.
 

Users who are viewing this thread

Top Bottom