Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 3

GitHub page blank after deploy: Failed to load resource: the server responded with a status of 404

Solved! Go to Solution.

Hi All, 

 

I tried to build a personal website following a template and the website worked perfectly locally. However, after I deployed it to GitHub Pages, I can only see a blank page. I checked the Javascript console and here is the error message: 

 

https://jiayibao.github.io/https://jiayibao.github.io/personal-site//main-1d41357ad301d064dcf9.min.j...

Failed to load resource: the server responded with a status of 404 ()

 

Does anyone have any clue why "https://jiayibao.github.io" is repeated twice in loading the resource? Here is my github repository: https://github.com/jiayibao/personal-site/

 

And here is the personal webpage that is currently showing blank: https://jiayibao.github.io/personal-site/

 

My suspect that the error has something to do with path, but I'm not really sure about how to fix it. Any help would be greatly appreciated! Thank you!

 

 

2 Replies
Community Manager
Message 2 of 3

Re: GitHub page blank after deploy: Failed to load resource: the server responded with a status of 4

Hi @jiayibao,

 

Thanks for being here! To have your repository show up at https://username.github.io/your-repository, you need to setup GitHub Pages for that repository as well. Ie: your repo should be USERNAME.github.io and its URL  ( https://github.com/USERNAME/USERNAME.github.io ).

 

I hope this helps!

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Solution
Copilot Lvl 2
Message 3 of 3

Re: GitHub page blank after deploy: Failed to load resource: the server responded with a status of 4

Thanks! In fact, this problem has been solved by the person who provided me the inital website template. Thanks for the input!