# Previews - unpublished document previews not working

**URL:** <https://community.prismic.io/t/previews-unpublished-document-previews-not-working/3455>\
**Category:** Developing with Prismic\
**Tags:** graphql\
**Created:** [January 6, 2021, 3:38pm UTC](https://community.prismic.io/t/previews-unpublished-document-previews-not-working/3455 "2021-01-06T15:38:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev13](https://avatars.discourse-cdn.com/v4/letter/d/f14d63/32.png) [@dev13](https://community.prismic.io/u/dev13)\
**Post date:** [January 6, 2021, 3:38pm UTC](https://community.prismic.io/t/previews-unpublished-document-previews-not-working/3455/1 "2021-01-06T15:38:35Z")

</div>

Hi there,

Very recently previews for unpublished content have stopped working for us (published content previews are still working perfectly).

I have followed the [Troubleshooting previews guide](https://user-guides.prismic.io/en/articles/3403530-troubleshooting-previews), and have found an issue that I need some additional help with.

When making a GraphQL query, there seems to be an issue with the `Prismic-ref` token for unpublished content, it returns a HTML document with the following error message:

```auto
whoa, didn't see that one coming!

We are not sure what happened, but it looks like a problem on our side.
If it is something that you can repeat, please let us know.
        
Check our status page for information about the service status and known incidents.
You can always contact us at contact@prismic.io.

```

Example of the published token: `X_ABCBIAACEApYZ-` (works)  
Example of the **unpublished** token: `X_ABCBIAACEApYZ-:X12tvxABCDE4AbjYz` (does not work).

Any help would be appreciated.

Many thanks,  
Sarah

---

<div class="post-metadata">

**Author:** ![dev13](https://avatars.discourse-cdn.com/v4/letter/d/f14d63/32.png) [@dev13](https://community.prismic.io/u/dev13)\
**Post date:** [January 7, 2021, 9:40am UTC](https://community.prismic.io/t/previews-unpublished-document-previews-not-working/3455/2 "2021-01-07T09:40:35Z")

</div>

Would really appreciate some help on this one please 🙏

---

<div class="post-metadata">

**Author:** ![dev13](https://avatars.discourse-cdn.com/v4/letter/d/f14d63/32.png) [@dev13](https://community.prismic.io/u/dev13)\
**Post date:** [January 7, 2021, 3:36pm UTC](https://community.prismic.io/t/previews-unpublished-document-previews-not-working/3455/3 "2021-01-07T15:36:57Z")

</div>

If anyone else runs into this issue, the name of the cookie has changed from `Prismic-ref` to `io.prismic.preview`.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [January 7, 2021, 4:48pm UTC](https://community.prismic.io/t/previews-unpublished-document-previews-not-working/3455/4 "2021-01-07T16:48:00Z")

</div>

Hi Team,

I'm really sorry we never got back to you in time on this one, but I'm glad you figured this out.

Can you tell me exactly where in your project `Prismic-ref` changed to `io.prismic.preview`? Because I may need to update the documentation. I was able to use this name in my test below.

Thanks and sorry again for the delay.

---

<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:** [January 20, 2021, 5:12pm UTC](https://community.prismic.io/t/previews-unpublished-document-previews-not-working/3455/6 "2021-01-20T17:12:12Z")

</div>

closed on January 20, 2021, 5:12pm UTC as resolved,  flag & select 'Something Else' to reopen.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<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, 4:47pm UTC](https://community.prismic.io/t/previews-unpublished-document-previews-not-working/3455/7 "2021-12-09T16:47:15Z")

</div>

Opened on December 9, 2021, 4:47pm UTC


