Error on uploading to S3. It seems like something has been expired but which one?

0

I was trying to upload a file to S3 on Client Side (browser) and i got this error. I got to know that this error can be caused when Date is expired or upload key is expired. How can i know Which case it was ?

The Error is like following..

<Error>
    <Code> 
        AccessDenied
    </Code>
    <Message>
        Invalid according to Policy: Policy expired.
    </Message>
    <RequestId>
        B360T30N5C7FTT3G
    </RequestId>
    <HostId>
        tgppE5mLIdkhXZOzhVkJWgkTeAkDyEwx9iFSVVwkWX9iTNNA+lOEoMs9qvHABCqm3BHP9vAST20=
    </HostId>
</Error>
Jihoon
posta 2 anni fa163 visualizzazioni
1 Risposta
1

Please note that for uploading an object using POST operation, you can setup a 'POST policy' for making authenticated requests that specifies conditions to validate the request. For example, the request must meet "expiration" which specifies the expiration date and time of the POST policy. If you upload an object using POST operation and the POST policy, the POST policy's expiration time will be checked against the client time. If the client time earlier than the expiration time, then you get the policy expired error. To resolve the issue, try changing the "expiration" time in the policy to current or future time. According to AWS POST policy, the upload must happen before the expiration time. Please check the link below for details. https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html Request you to check the expiration time in the POST policy in your client and modify it to future time, before performing post operation. Please note that AWS support does not have insights to client side settings such as POST policy.

AWS
TECNICO DI SUPPORTO
Ipsha
con risposta un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande