benjreinhart / react-native-aws3

Pure JavaScript React Native library for uploading to AWS S3
MIT License
399 stars 151 forks source link

Policy expired error #28

Closed agrass closed 7 years ago

agrass commented 7 years ago

Hi!

I'm getting this error:

<?xml version="1.0" encoding="UTF-8"?>\n<Error><Code>AccessDenied</Code>
<Message>Invalid according to Policy: Policy expired.</Message>
<RequestId></RequestId>
<HostId>w//</HostId></Error><?xml version="1.0" encoding="UTF-8"?>\n
<Error><Code>AccessDenied</Code>
<Message>Invalid according to Policy: Policy expired.</Message>
<RequestId></RequestId>
<HostId>
</HostId></Error>

I tried to add more timeDelta, but I can't fix this issue. Anyone with same problem??

Thanks

benjreinhart commented 7 years ago

Did you try this without the timedelta?

agrass commented 7 years ago

Thanks for the response. I already fixed it updating to last version (0.0.4) and added 24 hours for timedelta.

sibelius commented 6 years ago

@agrass could you share your solution?

I think this is related https://github.com/benjreinhart/react-native-aws3/issues/58

agrass commented 6 years ago

I just added some timeDelta, to prevent this when the time in the phone is wrong

sibelius commented 6 years ago

timeDelta: -24*60*60*1000 works great

tks