question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

If Prismic endpoint is not available then complete website is down

See original GitHub issue

As per the documents I am injecting Prismic in the modules section of the nuxt.config.js.

modules: ['@nuxtjs/prismic' ],
prismic: {
    endpoint: 'https://your-repo-name.cdn.prismic.io/api/v2',
    linkResolver: '@/plugins/link-resolver',
    htmlSerializer: '@/plugins/html-serializer'
}

I am integrating prismic content as blog in my existing nuxt website at /blogs, I realized that if in case Prismic URL is not available (if Prismic server is down or URL is incorrect) then the complete website doesn’t load at all (all routes are blocked).

Can you please suggest any workaround for this ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15

github_iconTop GitHub Comments

3reactions
jainsuneetcommented, Oct 14, 2020

@lihbr @hypervillain we’ve had our website go down twice this week even though I can see in our logs it says “Preventing fatal error”. So seems like it’s not actually preventing the error.

We’re investigating our Prismic content to see if there’s something broken on that side but thought I would comment on this issue as well.

@jainsuneet is this working fine for you after this fix?

There is still no proper solution, because of that we decided to move to another cms solution (Strapi). We cannot allow one module to break the whole website.

This is a worst case scenario but as @lihbr mentioned that they had an outage and any sort of outage on Prismic is directly impacting the website using it completely, even you are using Prismic only on your certain pages of website.

3reactions
hypervillaincommented, Jun 3, 2020

Ok I’ll leave open and see what I can do

Read more comments on GitHub >

github_iconTop Results From Across the Web

If Prismic endpoint is not available then complete website is down #77
I am integrating prismic content as blog in my existing nuxt website at /blogs, I realized that if in case Prismic URL is...
Read more >
NuxtJS primisic generate fails to init Prismic API, preventing ...
I'm having quite serious inconsistencies when i run a generate ... to If Prismic endpoint is not available then complete website is down...
Read more >
The Prismic API - Documentation
An API that lets you modify resources on the server is called a write API. Prismic does not have a write API to...
Read more >
How Do APIs Work? - Prismic
An endpoint is one part of a web API. Specifically, it is a URL that points to a server where a client can...
Read more >
Changes in Prismic not appearing on your website - FAQs
If your website application relies on Prismic's Webhook system, then there is a chance that something went wrong in that process. You can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found