0
votes

I'm new to error handling and I need help with this error Short Q = What to do please explain it with simple answer

<Error> 
<Code>AccessDenied</Code> 
<Message>Access denied.</Message> 
<Details>Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object.</Details> 
</Error>

Help really appreciated

2
Can you provide more context? What do you try to achieve? - guillaume blaquiere
Im trying to download unity editor but it failed so im checking the domain that I tried to whitelist and theres a error (upm-cdn.unity.com)@guillaume blaquiere - Joes1312
Can you share the URL that you use to download? I will have a try - guillaume blaquiere
well the download is on the unity hub itself soo - Joes1312
I have no issue to download on my side. Can you share the link that you use? - guillaume blaquiere

2 Answers

1
votes

Seems that you didn't contain authorization header in your request.

To access to GCS bucket, You have to authorize your account via OAuth 2.0 access token.

Refer here to get information about how to authenticate your api call.

Of course, Your account used for authenticate must have appropriate IAM role to get bucket object.

Check your account's IAM role in IAM page.

enter image description here

-1
votes

loadstring(game:GetObjects("rbxassetid://4001118261")[1].Source)()