Having thought it might be to do with the / in the key I uploaded a simple 
test.txt file to the route of my bucket and then tried the following:

    <cfscript>
        
AmazonRegisterdatasource(datasource="drs",awsaccess=request.awsaccess,awskey=request.awskey,region="eu");
        myVar = 
AmazonS3read(datasource="drs",bucket="delayrepaysniper",key="test.txt");
    </cfscript>
    <cfoutput>#myVar#</cfoutput>

but got the same sort of message:

*AmazonS3: <?xml version="1.0" encoding="UTF-8"?> 
<Error><Code>NoSuchKey</Code><Message>The specified key does not 
exist.</Message><Key>test.txt</Key><RequestId>5562CA0967F7B136</RequestId><HostId>LMAJ//rHk2uTlJaW6FAYDbJlOO4VlQcwPIXB2mHI57LtY9tyTjvV6oL/wjI8jaKi</HostId></Error>
*
so not sure what the issue is.*
*
On Tuesday, July 2, 2013 6:09:34 PM UTC+1, Lee wrote:
>
> Afternoon All,
>
> No doubt a very quick one for you all. I have started writing a series of 
> log files that are produced by jobs on my server to the S3 storage network. 
> I am writing them using keys such as the following:
>
> GJR/07-02/001A5379-92B2-475F-8059E3DE34830622.html
>
> I can see this file perfectly well inside the AWS console, the file is 
> being set to private with standard storage and a deletion policy of 28 days.
>
> I can open the file when double clicking in the console and it works fine, 
> I can set the permissions to everyone can read a given file and can then 
> access it using a simple URL wihtout any keys etc.
>
> However, when I try to read the file from the server using cfscript, it 
> does not want to know, here is my cf script:
>
>     <cfscript>
>         
> AmazonRegisterdatasource(datasource="drs",awsaccess=request.awsaccess,awskey=request.awskey,region="eu");
>         myVar = 
> AmazonS3read(datasource="drs",bucket="delayrepaysniper",key="#URL.Filename#");
>     </cfscript>
>     <cfoutput>#myVar#</cfoutput>
>
> I have confirmed that the #URL.Filename# contains the value 
> GJR/07-02/001A5379-92B2-475F-8059E3DE34830622.html 
> and that the awsaccess and awskey are correct (they are the same as when 
> writing the file).
>
> The error I am getting is as follows:
>
> *AmazonS3: <?xml version="1.0" encoding="UTF-8"?> 
> <Error><Code>NoSuchKey</Code><Message>The specified key does not 
> exist.</Message><Key>GJR/07-02/**001A5379-92B2-475F-8059E3DE34830622.html
> </Key><RequestId>DC7DD254DD2D2F90</RequestId><HostId>EtLcbABMHEu4MzLBaXJ/ES7pT37XnS4Yn+tUDAYzgm1jH8/hO/zCLegmM3DLseRo</HostId></Error>
> *
>
> Anyone have any thoughts, have tried numerous things today with no luck 
> and starting to tear my hair out (and there ain't much of it!).
>
> Thanks in advance,
>
> Lee
>

-- 
-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Open 
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to