Error app.netlify.com/access-control : 412

Hi everybody!

I have a very curious error on a page:
https://visites.nougats-silvain.fr/visites/le-parcours-gourmand/

This page:

<template>
  <div>
    {{ visit }}
  </div>
</template>

... 

async asyncData ({ route })  { 
    const {
      data: {
        visit,
        dates
      }
    } = await visitsApi.getVisitInfos(route.params.slug)
    return {
      visit,
      dates
    }
  },
})

And during my build script (no error):

// Generate Visits Pages
  const { data: visits } = await axios.get(VISITS_URL.getVisitesForGenerate)
  visits.forEach((visit: any) => {
    const visitSlug = visit.slug
    //const visitDates = visit.dates
    routes.push({
      route: `visites/${visitSlug}`,
      payload: visit
    })
  })

Theses two endpoints are ok. On the page, i see data displaying, and suddenly disappear…

I noticed in my console this error, which seems to appear right when my visit variable is deleted.

https://app.netlify.com/access-control/bb-api/api/v1/cdp/deploys/63c7f3cd672da00008b25728/views => 412

I don’t know if there is any connection…

Thanks a lot!
Vincent

hmmm that’s weird. I think this is an issue with your code. Can you please provide your repo? Debugging is out of the realm of support but perhaps someone can chime in regarding this. Also, I recommend you give this guide a read, it may help. [Support Guide] Debugging Netlify site builds

Ok thanks.

And for this error:

https://app.netlify.com/access-control/bb-api/api/v1/cdp/deploys/63c7f3cd672da00008b25728/views => 412

Have you any idea?

Hi @pit07, i have no clue but I suspect there might be something in your code. I will leave this thread open for others to chime.