Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category view results in Access Denied error #14

Open
deki opened this issue Jul 4, 2019 · 3 comments
Open

Category view results in Access Denied error #14

deki opened this issue Jul 4, 2019 · 3 comments

Comments

@deki
Copy link

deki commented Jul 4, 2019

Describe the bug
The category view e.g. https://mydistname.cloudfront.net/category/Cars results in an Access Denied error.

<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>012345</RequestId><HostId>R2oclEoKzgck7Jw/5rBKjXDjqKV0bOtBZrBzfttfnvanUu9KK/kbZmeOWXdrz6X9IGVfSk=</HostId></Error>

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to Index page
  2. Click on one of the categories in the Navigation bar
  3. AccessDenied error will appear

Expected behavior
Books in the selected category are shown

@smohiuddin
Copy link
Contributor

Hi, we are unable to reproduce this error. Sometimes CloudFront distributions can take as much as 30 min to start up. Are you still seeing this issue?

@deki
Copy link
Author

deki commented Jul 9, 2019

Yeah it happens even after days but only when using the main navigation bar. For example clicking Cookbooks in the navigation bar fails with AccessDenied while clicking the "Browse cookbooks" link successfully displays the page.

@triggan
Copy link
Contributor

triggan commented Nov 23, 2022

After testing this in the stack, I was successfully able to reproduce this issue and apply the custom error response as noted in the following article. I need to apply this to the CFN stack so that this error response is created during a deployment: https://www.codebyamir.com/blog/fixing-403-access-denied-errors-when-hosting-react-router-app-in-aws-s3-and-cloudfront

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants