Opening document results in "Prismic has encountered an error"

Hi, recently I begun to get this error.
When I try to open any Prismic document it briefly loads before throwing me into this error:
image

I'm currently running

    "@prismicio/client": "^7.3.1",
    "@prismicio/helpers": "^2.3.9",
    "@prismicio/next": "^1.5.0",
    "@prismicio/react": "^2.7.3",
    "@prismicio/slice-simulator-react": "^0.2.3",
    "@prismicio/types": "^0.2.7",
    "next": "^13.1.6",
    "@slicemachine/adapter-next": "^0.3.30",
    "slice-machine-ui": "^1.22.0",

Has anyone encountered similar issue? Perhaps is there a way to resync locally stored data with Prismic which hopefully can remedy the issue?

Thanks,
Dave

Hi @viska ,

Welcome to the forum. I'll be happy to help, but I'm confused about where you're seeing this. Is this happening in Slice Machine?

Can you send me a screen recording of the issue?

Do you see any errors in the browser console or the terminal?

What is your repository URL?

Sorry for the late response.

The error in the console looks like this
image

Here's the link to the repo: https://brim-annual-report-2023.prismic.io/

Hope these can help!
Dave

Hi Dave,

I'm still unsure where you are seeing this because of the cropping, is this in the page builder or in Slice Machine?

Thanks.

It's on the page builder. Opening it with the legacy editor seems to work just fine.

We found the issue. In your previews, there's an extra space at the end of localhost:3000, which is causing our validation to crash.

We will do a code fix, but in the short term, you can go to the repo settings and remove the extra space.

Oh my. Thanks! It works now!

1 Like