# 500 Error When Using a Preview Ref

**URL:** <https://community.prismic.io/t/500-error-when-using-a-preview-ref/1617>\
**Category:** Developing with Prismic\
**Tags:** graphql\
**Created:** [August 21, 2020, 6:30pm UTC](https://community.prismic.io/t/500-error-when-using-a-preview-ref/1617 "2020-08-21T18:30:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brent.hays](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@brent.hays](https://community.prismic.io/u/brent.hays)\
**Post date:** [August 21, 2020, 6:30pm UTC](https://community.prismic.io/t/500-error-when-using-a-preview-ref/1617/1 "2020-08-21T18:30:49Z")

</div>

Suddenly we are seeing a 500 error when submitting a GraphQL query with preview refs. When I submit the same query using our master ref, we receive a valid response, but when using a preview ref we see the error message seen here - [Screenshot on 2020-08-21 at 13-25-06.png - Droplr](https://d.pr/i/mMA80R)

Could this mean something is wrong with our content? We tried to archive our major content changes and preview with simple tweaks (changing words only) and are still getting the same error.

---

<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:** [August 22, 2020, 12:46am UTC](https://community.prismic.io/t/500-error-when-using-a-preview-ref/1617/2 "2020-08-22T00:46:58Z")

</div>

Hello Brent! welcome to the community forum!

Let’s make a few checks:

- Have you configured the previews both in the repository and in your project? We have a [troubleshooting article for previews](https://user-guides.prismic.io/en/articles/3403530-troubleshooting-previews)
- Is this the first time you’re having issues with this?
- How are you passing the preview ref? If you have screenshots of code snippets it’l be very useful

---

<div class="post-metadata">

**Author:** ![brent.hays](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@brent.hays](https://community.prismic.io/u/brent.hays)\
**Post date:** [August 24, 2020, 2:49pm UTC](https://community.prismic.io/t/500-error-when-using-a-preview-ref/1617/3 "2020-08-24T14:49:17Z")

</div>

Hi Paulina, thanks for your response!

We’ve had previews set up to work for some time, and this is the first time we’re seeing this error.

From the troubleshooting article, I am building a link to test with the REST API, and seeing the error in the screenshot here - [https://d.pr/i/U2AU6K](https://d.pr/i/U2AU6K)

I’ve crossed out our repo and ref but would provide that via private message if it is of more help

---

<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:** [August 25, 2020, 7:07pm UTC](https://community.prismic.io/t/500-error-when-using-a-preview-ref/1617/4 "2020-08-25T19:07:48Z")

</div>

Yes that’ll be really useful. I’ve sent you a message

---

<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:** [September 24, 2020, 8:54pm UTC](https://community.prismic.io/t/500-error-when-using-a-preview-ref/1617/7 "2020-09-24T20:54:06Z")

</div>

closed on September 24, 2020, 8:54pm UTC, flag & select 'Something Else' to reopen.

This issue has been closed due to inactivity.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 5:27pm UTC](https://community.prismic.io/t/500-error-when-using-a-preview-ref/1617/9 "2021-12-09T17:27:36Z")

</div>

Opened on December 9, 2021, 5:27pm UTC


