Hey Prismic team, hope you're all well!
I've been receiving a 403 error (forbidden) from Prismic api v2. It happens when visiting some page urls, it happens very rarely, but obviously leads to an error page instead of the desired page.
I've narrowed this down to what I believe is the route resolver when not visiting a URL within this route structure:
- It seems to happens more on Safari, Chrome has happened once
- It happens on both production/development builds
- My route resolvers are otherwise working perfectly
- It has happened on 4 different machines
- The json error is: {"error":"Access to this Ref requires an access token","oauth_initiate":"https://[repo].cdn.prismic.io/auth","oauth_token":"https://[repo].cdn.prismic.io/auth/token"}
This is the request path URL that throws the error:
https://[repo].cdn.prismic.io/api/v2/documents/search?routes=%5B%7B%22type%22%3A%22journal_post%22%2C%22path%22%3A%22%2F%3Alang%2Fjournal%2F%3Acategory%2F%3Auid%22%2C%22resolvers%22%3A%7B%22category%22%3A%22category_relation%22%7D%7D%2C%7B%22type%22%3A%22ondemand_post%22%2C%22path%22%3A%22%2F%3Alang%2F%3Aondemand%2F%3Acategory%2F%3Auid%22%2C%22resolvers%22%3A%7B%22category%22%3A%22category_relation%22%2C%22ondemand%22%3A%22category_relation.link_to_ondemand%22%7D%7D%2C%7B%22type%22%3A%22press_post%22%2C%22path%22%3A%22%2F%3Alang%2Fpress%2F%3Acategory%2F%3Auid%22%2C%22resolvers%22%3A%7B%22category%22%3A%22category_relation%22%7D%7D%5D&page=1&pageSize=1&lang=en-gb&ref=YEDCXRIAACAAhESY&q=%5B%5Bat(my.page.uid%2C%20%22hamburg%22)%5D%5D
Full 'search' network request:
network request.zip (1.9 KB)
I can send you the Prismic repo in a private message if required.
Any help would be much appreciated.
Thanks
Jake