RSS

Forums/ScreenSteps Live

Answered

Users report "Request has expired" error message when downloading manual PDF

Steffen Itterheim
asked this on May 10 00:45

I have several users reporting that they were unable to download the manual PDF. I'm not sure how or when this error is presented but it reads like this:

<?xml version="1.0" encoding="UTF-8" ?>
- <Error>
<Code>AccessDenied</Code>
<Message>Request has expired</Message>
<RequestId>3693112A716EB1A8</RequestId>
<Expires>2010-05-10T03:34:31Z</Expires>
<HostId>Y3HA07kMELsp5/O99IH94DuEzVkmGqIQ+CGoRqOb34zIUHIfBHnofVNQ5sO7mT/V</HostId>
<ServerTime>2010-05-10T03:40:44Z</ServerTime>
</Error>

I know that during and shortly after updating a manual the PDF download links can be broken. But in those cases i did not make any updates at the time. I hope this is just a glitch with Amazon S3.

 

Comments

User photo
Greg DeVore
Blue Mango Learning Systems

Steffen-

URLs for your manuals on S3 will expire after a certain amount of time. You shouldn't share the s3 urls with others for downloading. If you go to your manual on ScreenSteps Live and right click on the link you will get a url for your manual that points to your ScreenSteps Live site. That is what you should send out. Then someone requests the manual at that url ScreenSteps Live will generate a new S3 url and redirect the request to S3. This makes sure that you always have a fresh S3 url.

Let me know if that isn't clear. If not I will prep a lesson on it.

May-10 2010 08:19.
User photo
Steffen Itterheim

Ok, i understand that. I can imagine my users sending direct links to the PDF manuals to each other which would explain that. But in case some were having this problem when they tried to download the PDF directly through my wordpress site i disabled the QuickCache plugin for now as i suspect it may have something to do with that and other issues like images not displaying. I'll keep an eye on it.

May-10 2010 10:52.
User photo
Louella Villamora

Hello,

I actually have that same error that Steffen has posted when i tried to retrieve an image from the screensteps live. How many seconds do URLs for manuals or images on S3 have before they expire?

Jun-09 2010 07:21.
User photo
Trevor DeVore
Blue Mango Learning Systems

The expiration time is 5 minutes for images protected spaces. For images in public spaces the expiration time is 24 hours.

PDF links expire in 5 minutes. I am working on an updated WP plugin that doesn't link directly to the Amazon S3 file but rather links to a WordPress page that grabs the S3 link and passes that to the browser.

Jun-09 2010 13:57.
User photo
Louella Villamora

My spaces are all public. You said that the images for public spaces expire after 24 hours. But the images i retrieved expired after 5 minutes. Why is that?

Thanks in advance!

Jun-09 2010 23:22.
User photo
Greg DeVore
Blue Mango Learning Systems

Louella-

Sorry, you are correct. Image urls requested through the API always expire after 5 minutes. We will look at making this match the expiration of urls for pages requested as html.

Jun-10 2010 10:27.
User photo
Louella Villamora

Thanks for the enlightenment.

More power!

Jun-10 2010 22:18.
User photo
Louella Villamora

5 minutes, I think would be enough for me to make the processes I have to make with the retrieved image. Thanks again!

Jun-10 2010 22:27.
User photo
Louella Villamora

Hello,

I have an additional question..just for clarification. When you said, "We will look at making this match the expiration of urls for pages requested as html.", do you mean you'll make the image URLs requested through API expire after 24hours also?

 

Thanks in advance!

Jun-15 2010 03:14.
User photo
Greg DeVore
Blue Mango Learning Systems

That is something we are looking at. How exactly are you using the cached urls via the API? 

Jun-15 2010 08:45.
User photo
Louella Villamora

Hello,

We want the images to be displayed in our app according to the will of the user. Whether he wants the images to be displayed or not is up for him to decide. As I've said the expiration of those urls after 5 minutes is enough, I guess. I just wanted to know if you'll gonna make them (urls) active for 24 hours. Thanks so much for the answers.

More Power!

Jun-17 2010 22:36.