Prismic has encountered an error: Cannot find a master locale

Hi Prismic,

When I log in to my old repo ameliacuni.prismic.io, the web backend, I get the error "Prismic has encountered an error" on the first pageload after picking the repo.

In the console I can see:

frame-modern.7ec87952.js:1 [Intercom] The App ID in your code snippet has not been set. Set it to your App ID found in settings to complete installation: https://app.intercom.com/a/apps/_/settings/web

EditorConfig.ts:180 Error: Cannot find a master locale.
    at TO (useDocumentListSearchParams.tsx:26:1)
    at o_ (useDocumentListLocales.ts:9:1)
    at uBn (useDocumentSearch.ts:63:1)
    at dNn (SearchBar.tsx:105:1)

I don't see a way to fix this myself. Can you please look after it?

Hi @cun-dur,

Welcome to the community! :slight_smile:

We've seen this bug before, sorry you've ran into it! Did you create your Prismic repository via the CLI, or the Prismic dashboard, or another way? Are you able to reload and see if it makes a difference/clears up the bug?

Created it via the web dashboard.

What do you mean "reload" it? I checked the web backend again and the error persists.

The content from the repo is still available over API. I just can't access it to edit it. I would strongly like to avoid recreating it all.

The error is that the repo doesn't have a "master locale", as per the dev console. Can you please set one from your end (English)?

I meant refresh, apologies.

I can't set one from my end. When this has happened in the past, we've advised users to add /settings/reset/ to their repository URL and delete the repository from there, and then restart. We usually recommend creating a repo from the dashboard and following the process displayed on the browser - if you do that, the locale is usually selected manually during the first step. Did you ever reach that screen?

I have the same problem. I think it's new issue, because when i'm access the project detail page last week no error encountered

Thanks but I don't want to reset the repo and restart. I want to keep all the data structures and data already in there (still accessible over API).

I did create the repo in the web interface like you described.

Please get an admin to set the locale of the repo so that I can access it again. I don't want to reset it.

Thank you.

1 Like

Hi everyone,

There was a miscommunication here; the thought was this was happening on the first access to a repo.

Can you each create a ticket in our support portal so we can get the private info for your cases.
https://prismic.atlassian.net/servicedesk/customer/portal/1/create/130

Also can you record your issue with this Chrome plugin? It will give us the dev information needed to debug, and you can remove it once you’re done.

2 Likes