Route resolver returns 401

Hey Julian,

I'll check this with the team now.

OK, can you check a few things?:

  • Send us the network logs containing the failed request to Prismic (see screen, it should be possible to download a HAR log)
  • Sending us your full nuxt config file
  • Double checking the Prismic token (or regenerating a fresh one)
  • Double checking that the environment variable for the token contains the correct value
  • Delete your node_modules & lock file and downloading again their dependencies

Also I'm not sure if you're using them "manually" but you shouldn't need to install @prismicio/vue, @prismicio/client, prismic-dom.

And here's a minimal repro using a private repo working with the Nuxt module
nuxt-access-token.zip (191.5 KB)

It's working after generating a new prismic token. Thanks!

1 Like

Also I'm not sure if you're using them "manually" but you shouldn't need to install @prismicio/vue, @prismicio/client, prismic-dom.

Really? Is @nuxtjs/prismic enough then?
I don't remember why or how I'm using these libraries mentioned tbh :)

Yes, it should be enough with just that. Let me know how it goes :slight_smile:

Yep, seems to work just fine :smiley:

1 Like