Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon AWS S3 404 error on page refresh

Getting the error mentioned below when I try to refresh the react based application which I deployed in Amazon AWS S3.

Did anyone face the same issue recently?

404 Not Found Code: NoSuchKey Message: The specified key does not exist. Key: <KEY> RequestId: C8BE5E360A29AA14 HostId: <HOSTID>

like image 679
John Samuel Avatar asked Feb 28 '18 16:02

John Samuel


People also ask

What does NoSuchKey mean?

NoSuchKey means it cannot find the topic. I should've created both the topic and bucket notification using same credentials. But when creating the topic, it allowed me to create without any credential and ended up being created under anonymous user. That is what has caused it to throw NoSuchKey error.

How do I reset my S3 bucket?

To empty an S3 bucketIn the Bucket name list, select the option next to the name of the bucket that you want to empty, and then choose Empty. On the Empty bucket page, confirm that you want to empty the bucket by entering the bucket name into the text field, and then choose Empty.

Can S3 bucket be restored?

You can restore the S3 data that you backed up using AWS Backup to the S3 Standard storage class. You can restore all the objects in a bucket or specific objects. You can restore them to an existing or new bucket.

What does S3 Getobject return?

PDF. Retrieves objects from Amazon S3. To use GET , you must have READ access to the object. If you grant READ access to the anonymous user, you can return the object without using an authorization header.


1 Answers

enter image description here

Fixed it :) ... I added index.html in error document section.

like image 117
John Samuel Avatar answered Nov 08 '22 09:11

John Samuel