-
Notifications
You must be signed in to change notification settings - Fork 138
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
Keep getting 404 Page not found errors #179
Comments
Solved it! This isn't documented but apparently there must be an |
Hey, sorry about that. Just to be clear, the project would have been published successfully event without the We have it on our list to improve the 404 page when it’s in the root of the project, to make what’s going on more clear. Thanks for opening an issue! |
Was just confused by this, glad I found this thread. |
I'm getting this randomly ~ once a week, I'm using npm run build &&
mv build/index.html build/200.html &&
surge -p build/ -d https://mlsmerchants.surge.sh I've just tried out of curiosity to rename it back We are about to launch our app in the next weeks and I've bought surge plus for the main website, it's a shame if it randomly stops working with no reason |
@mtt87 we'll get to the bottom of the issue Im sure. Its just one of those bugs thats only showing up in production so its hard to track down the source the problem. As a workaround you can modify the file by adding a space at the end and I believe it will work. |
I have this same problem. I just got introduced to sh. I finished uploading my files and it showed me a message : |
@iamsoughtout I'm getting this too. Did they ever find a fix? |
"Page not Found" usually means you are missing an |
@sintaxi the index is there in the build folder and it's properly linked to the css & js files. But it just says it can't get them, despite being the correct file path. I will mention though that is it a create-react-app project. Not sure if that is causing any problems. |
@webbdm i never got a solution from them. I sent a mail to a Brock, who works in Surge. He was replying me for a while, then all of a sudden just went AWOL, without helping to solve the problem. @sintaxi, are you the same Brock I was speaking with? I have an index.html file in the root of the project, and I also shared my file directory pathing with Brock which he didnt fault. He requested to see how I was uploading my file and I sent him a snapshot of my NodeJs command line, showing the processes and the final success message. @sintaxi if you are the same Brock, I am still waiting for your response, pls. |
If you're using Rather than update the path each time, you can use the command |
@iamsoughtout appologies, I had thought I got you the information you needed. The problem you appear to be having is your I think I am going to start to display a default index.html file when one isnt present so that people can see the files they have uploaded. Does that make sense to you all? |
after changing my file name to index.html, still showing page not found |
@iamsoughtout be sure to redeploy after making the changes. Here is whats showing on your project. |
Happy I found this. Really helped! |
Hey GUys I need Help!!!! URGENT! =( My page shows : No Page Found! (https://bellamyribeiro.github.io/) Im sorry im a noob at this! however My file structure is : https://github.com/BellamyRibeiro/BellamyRibeiro.github.io Any help is appreciated =( Thanks in advance!!! |
Thank you for the advice to make sure I have an |
Thank you for helping me. |
I am getting same issue I get success when uploading a flutter web build folder. I already have index.html page on root. Still I'am getting 404 error. How do I trace the issue @sintaxi ? |
@rahulvyas its difficult to help you with the limited information you have provided. In most cases when people report this issue they simply deployed the wrong directory. You can visit |
please add the instructions in "getting started" doc on surge.sh that your root file MUST be called "index.html" I was naming mine app.html and it took me days to figure out that this was the issue, delaying my coding challenge for a hiring process! Other than that y'all are awesome. Might be nice to have a "common issues" or such easily accessed for noobs like me :) |
Thanks so much, having the index file in the root directory got it to work! |
I've run both the
surge
command andsurge --domain park-jobs.surge.sh
commands and they successfully deploy giving me the following messageSuccess! Project is published and running at powerful-news.surge.sh
, but when I check the address I get a page not found. What could be the reason for this? I just did it with another of my apps maybe 5 minutes ago and it worked perfectly. I do have a.surgeignore
file on both projects adding thebower_components
directory that is being ignored in source control. I do not think this is the issue, though. I also have my cache disabled so I don't think it's a CDN caching issue. Thanks for any help with this issue!The text was updated successfully, but these errors were encountered: