Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by shisonghua1071 · Aug 18, 2016 at 02:06 PM · Content

GetContentDownloadUrl download file failed access denied

Hi I Use GetContentDownloadUrl to get the download url, while input the url to the browser it reports

the following error:


<Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>6CE59BEFB2936E4B</RequestId><HostId> covc1dSteAfZCFKO/7mBQcYTbuyD/bmJaDhEaGsNP3uYZogBiETI9jGMyylpljVD11lHYg1eo0E= </HostId>

</Error>

While download from the GameManager will successfully.

how can I download the url successfully

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by shisonghua1071 · Aug 18, 2016 at 08:31 AM

I guess I know.

when I input the key, I input key like this

"Key": "Root/PVPReward.xml"

I should remove the Root/, and it works again

Comment

People who like this

0 Show 3 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Brendan ♦♦ · Aug 18, 2016 at 02:09 PM 0
Share

Yes, the Key does contain the path to the content, but there's no "Root/" as part of that by default. One question, though - do you mean you were using "Root/" in the GetContentDownloadUrl call, and it was returning a URL?

avatar image dragonfoundry Brendan ♦♦ · Aug 22, 2016 at 01:52 PM 0
Share

We've been able to get URLs for files that don't exist too (using the server api to check file status on a file update). I'd expect that the behaviour would be to return a failure, not a URL that doesn't work.

avatar image Brendan ♦♦ dragonfoundry · Aug 22, 2016 at 06:40 PM 0
Share

Correct - the file request is formed based upon the inputs, which can refer to a Key that doesn't actaully exist in the S3 bucket that CloudFront points to. While I agree that it would be convenient for the GetContentDownloadUrl call to check for the existence of the Key, that would be a breaking change from the current behavior. Granted, it's possible that we wouldn't impact anyone, but we have a hard commitment to no breaking changes. If we update to a new model for Content in future, we can look at adding this check. For now, the way to check would be the error on the file download.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    No one has followed this question yet.

    Related Questions

    UE4 GetContentDownloadUrl issue,UE4, GetContentDownloadUrl and subsequent HTTP GET 1 Answer

    How to download content from cdn? 1 Answer

    Having trouble with Get content from CDN to Update my game's version in Unreal Engine 4 0 Answers

    Start off every player with certain Player Data and Statistics 3 Answers

    I make project mesh upload Donwload project and error is occured upload download 0 Answers

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges