-
Notifications
You must be signed in to change notification settings - Fork 0
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
Access Denied Error Loading DevHub Courses #20
Comments
I tried loading the website homepage and courses directly from the bucket website endpoint itself, which worked, suggesting the problem was with CloudFront rather than the website source code.
I used curl -vfsSL 'https://learn.eosnetwork.com'
curl -vfsSL 'https://learn.eosnetwork.com/course/getting-started-with-eos' I also checked out the console, network, and security tabs in the browser dev tooling ( |
Ultimately I found this AWS support article about diagnosing CloudFront 403
...instead of the bucket website endpoint.
This is the first thing the support article warns against. I found that, when creating new CloudFront origins, AWS suggests the wrong endpoints by default. Awesome. -_- When you put in the bucket website endpoint, AWS labels this as a "custom origin" instead of an S3 origin. I set this "custom" origin in a second CloudFront distribution used for testing and sent an invalidation request for all files ( I changed the origin from the S3 endpoint to the "custom" bucket website endpoint and sent an invalidation request for the production CDN. I was able to verify the courses were loading properly for me. Finally, I used my VPN to verify the Getting started with EOS course could be navigated to directly and that tab could be successfully reloaded in the following regions:
|
In devrel issue 96, Automation stood up the learn.eosnetwork.com DevHub portal as a statically hosted website in an Amazon S3 bucket behind Amazon CloudFront, a global content delivery network. This website consists of several components including a home page, an account system, and courses that can be completed.
At 2023-01-09 05:41 EST, I received this bug report from my customer.
I tried myself in Brave (Version 1.46.153 Chromium: 108.0.5359.128) on Linux Mint 21.0 and was able to reliably reproduce this issue by doing literally anything besides going to the home page and clicking on a course.
None of the following worked for me:
I tried these actions both logged out and logged in to my DevHub account.
See Also
The text was updated successfully, but these errors were encountered: