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
feita há 2 anos162 visualizações
1 Resposta
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
ENGENHEIRO DE SUPORTE
Ipsha
respondido há um mês

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas