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

AWS amplify React Web App deploy completes successfully but error 404 on access to website #3827

Closed
3 tasks done
MoDaCoder opened this issue Nov 25, 2023 · 8 comments
Closed
3 tasks done
Labels
archived This issue has been locked. custom-domain Custom domain issues

Comments

@MoDaCoder
Copy link

MoDaCoder commented Nov 25, 2023

Before opening, please confirm:

App Id

d34nndegsdx4fm

Region

us-east-1

Step

Deployment

Status

Deployment successful

Issue or question

I deploy my react app and the build is successful but when I click on the domain link it sends me to a 404 error page.
Can someone help me fix this and explain how to prevent it from it happening in the future please.
Screen Shot 2023-11-25 at 2 02 45 PM
Screen Shot 2023-11-25 at 2 03 24 PM

Error message

This main.d34nndegsdx4fm.amplifyapp.com page can’t be found No webpage was found for the web address: https://main.d34nndegsdx4fm.amplifyapp.com/
HTTP ERROR 404
Screen Shot 2023-11-25 at 2 03 24 PM

Additional information

Here is my package.json file code

{
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "@babel/plugin-proposal-private-property-in-object": "^7.21.11"
  },
  "name": "martinez-autobody-react",
  "version": "0.1.0",
  "homepage": "https://main.d34nndegsdx4fm.amplifyapp.com/",
  "private": true,
  "dependencies": {
    "@testing-library/jest-dom": "^5.17.0",
    "@testing-library/react": "^13.4.0",
    "@testing-library/user-event": "^13.5.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-scripts": "^5.0.1",
    "web-vitals": "^2.1.4"
  }
}
@MoDaCoder MoDaCoder added the custom-domain Custom domain issues label Nov 25, 2023
@revupai
Copy link

revupai commented Dec 14, 2023

Hi, Were you able to resolve this issue?

@saranya-sreedharan
Copy link

I am facing the same issue. Has anyone been able to resolve it?

@saranya-sreedharan
Copy link

That issue resolved. Just clear the catche and try again that's only required

@MoDaCoder
Copy link
Author

I tried clearing the cache but it didn't do anything.
Do you know of any other things that might work?

@MoDaCoder
Copy link
Author

Hi, Were you able to resolve this issue?

No I haven't been able to resolve it yet.

@Jay2113
Copy link
Contributor

Jay2113 commented Feb 7, 2024

Hi @MoDaCoder 👋 , thanks for reaching out. I observed that your Amplify app d34nndegsdx4fm has been deleted.

If the issue persists or resurfaces, I would highly recommend reviewing the baseDirectory attribute in your build specification file i.e. amplify.yml file to see if it is accurate. This directory contains the build artifacts of your app and a 404 error can occur if the artifacts are not present under the specified baseDirectory.

You can refer to this documentation to learn more about the build specification attributes: https://docs.aws.amazon.com/amplify/latest/userguide/build-settings.html#yml-specification-syntax.

@Jay2113 Jay2113 closed this as completed Feb 7, 2024
Copy link

github-actions bot commented Feb 7, 2024

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Copy link

github-actions bot commented Feb 7, 2024

This issue has been automatically locked.

@github-actions github-actions bot added the archived This issue has been locked. label Feb 7, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived This issue has been locked. custom-domain Custom domain issues
Projects
None yet
Development

No branches or pull requests

4 participants