404 error on some (not all) uploaded js files #22074
-
I have uploaded 4 files to my repository (one html file, three js files). Scripts load and render fine on my local machine. But from my github URL (https://wandybrine.github.io/module4assignment/site/) I get a 404 error on two of the js files. It loads the same from another computer, so I know it is not a cached problem. Thanks in advance for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
To add more context to my problem, it shows here on my project page that all 4 files have been uploaded. The problem, however, is that the files aren’t recognized when viewing my github pages html file. So, my index.html file is getting 404 not found errors on the speakhello.js and speakgoodbye.js files, but as far as I can tell, they are right where they are supposed to be. |
Beta Was this translation helpful? Give feedback.
-
Hi @Wandybrine Thank you for being here! Sometimes the letter case (uppercase/lowercase) is a source of the 404 error. I noticed the site is looking for SpeakGoodBye.js (renders a 404) instead of SpeakGoodbye.js (loads successfully). Here is another example thread that may be helpful: My web site loses formatting after uploading |
Beta Was this translation helpful? Give feedback.
-
That worked, thanks! Is the uppercase/lowercase issue exclusive to github pages? |
Beta Was this translation helpful? Give feedback.
-
Great! I am glad that helped you. This pattern is not exclusive to GitHub Pages, errors related case-sensitive filename systems do occur on other platforms. |
Beta Was this translation helpful? Give feedback.
Hi @Wandybrine Thank you for being here! Sometimes the letter case (uppercase/lowercase) is a source of the 404 error. I noticed the site is looking for SpeakGoodBye.js (renders a 404) instead of SpeakGoodbye.js (loads successfully).
Here is another example thread that may be helpful: My web site loses formatting after uploading