# 404 on the homepage

**URL:** <https://community.prismic.io/t/404-on-the-homepage/11593>\
**Category:** Developing with Prismic\
**Tags:** nextjs, cli, slice-machine\
**Created:** [November 10, 2022, 11:08am UTC](https://community.prismic.io/t/404-on-the-homepage/11593 "2022-11-10T11:08:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kinga.maria.rozanska](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@kinga.maria.rozanska](https://community.prismic.io/u/kinga.maria.rozanska)\
**Post date:** [November 10, 2022, 11:08am UTC](https://community.prismic.io/t/404-on-the-homepage/11593/1 "2022-11-10T11:08:58Z")

</div>

Hello,

My team and I have been getting 404 (only) on the homepage quite regularly. To fix it temporarily we have been redeploying the website in Vercel.  
We have a hard time figuring out what is causing this error. Some of the errors that we have recieved quite a lot on Sentry are connected to prismicClient which we have in try and catch, we have recieved An invalid API response was returned and No documents are found.  
But nothing has pointed us directly to the problem. Has anyone any idea what might be happening?

Thank you!

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [November 10, 2022, 5:57pm UTC](https://community.prismic.io/t/404-on-the-homepage/11593/3 "2022-11-10T17:57:27Z")

</div>

Hey @kinga.maria.rozanska, welcome to the community.  
Maybe you need to manage the error page on the front end so that there's an alt page where it can fall whenever the page doesn't exist. You could also check if the build is being done correctly. Do you have automatic deploy triggers?
