i now hate this amazon s3, its a piece of garbage,...
# lucee
g
i now hate this amazon s3, its a piece of garbage, it works sometimes now, i am trying to upload a file, and i am getting this error its very weird why it is happening
Copy code
Error! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><Error><Code>PermanentRedirect</Code><Message>The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</Message><Endpoint><http://s3.temp.files.s3.ca-central-1.amazonaws.com|s3.temp.files.s3.ca-central-1.amazonaws.com></Endpoint><Bucket>s3.temp.files</Bucket><RequestId>RequestID</RequestId><HostId>HostID</HostId></Error>" Error making Amazon REST Call: Code: PermanentRedirect\nMessage: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.\nEndpoint: <http://s3.temp.files.s3.ca-central-1.amazonaws.com|s3.temp.files.s3.ca-central-1.amazonaws.com>\nBucket: s3.temp.files\nRequestId: RequestID\nHostId: HostID
d
its says to send requests to
<http://s3.temp.files.s3.ca-central-1.amazonaws.com|s3.temp.files.s3.ca-central-1.amazonaws.com>
g
i am using amazonSDK by ortus, and i am sending the requestas:
ProcessUpload = putObjectFile(bucketName=bucket_Name,filepath=arguments.game);
but i am getting an error and the filepath is:
D:\lucee\tomcat\webapps\ROOT\WEB-INF\lucee\temp\game.jpg
here is my code for the function which i am using to upload it
m
I have not worked with this, but I would imagine changing the AWS region would help you along your way.. https://www.forgebox.io/view/s3sdk
b
@gsr you're region is wrong
Set the correct default region in the sdk
I think it defaults to us-east
g
but i passing the region to canada, do i need to explicity set to canada using setAWSRegion
i used setAWSregion and then i did the upload and it worked
weird it was working before