# Preview problem - Internal Server Error 500

**URL:** <https://community.prismic.io/t/preview-problem-internal-server-error-500/5772>\
**Category:** Developing with Prismic\
**Tags:** nextjs\
**Created:** [June 14, 2021, 5:24pm UTC](https://community.prismic.io/t/preview-problem-internal-server-error-500/5772 "2021-06-14T17:24:56Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![andreas.kratzel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/andreas.kratzel/32/415_2.png) [@andreas.kratzel](https://community.prismic.io/u/andreas.kratzel)\
**Post date:** [July 13, 2021, 3:48pm UTC](https://community.prismic.io/t/preview-problem-internal-server-error-500/5772/10 "2021-07-13T15:48:59Z")

</div>

Hey, so I am facing a similar issue. I use next.js on my application and I am receiving 500 Internal Server Errors on my **unpublished** documents. It works fine for all other documents.

I saw that [Troubleshooting: Previews](https://community.prismic.io/t/troubleshooting-previews/5449#are-you-trying-to-preview-an-unpublished-document-9) provides help here, but adding the toolbar js on my 404 page did not help unfortunately. The rest is pretty much set up as it is recommended here [Previews with Next.js - Prismic](https://prismic.io/docs/technologies/previews-nextjs)

Is there a proper way to preview unpublished docs?

Thanks!

---

_[View the full topic](https://community.prismic.io/t/preview-problem-internal-server-error-500/5772)._
