fabrice
(fab cor)
December 20, 2020, 8:44pm
1
Hello, when I run prismic sm --develop I receive the following error [slices API]: Unauthorized
But everything is fine: I run storybook, I have a custom slice... I think there is something wrong with my account ! Any help ?
Priyanka
(Priyanka Maheshwari)
December 21, 2020, 10:12am
3
Hell @fabrice ,
Welcome to the Prismic Forum.
I see the same issue happened with another user too. Please check this thread, It can be helpful for you:
Hello all,
Getting up to speed with Prismic and Slice machine which looks awesome. I'm now exploring building my own slices.
I'm having a few teething issues launching Slice Machine.
When running prismic sm --develop I receive the following error [slices API]: Unauthorized
Story block is running in another terminal window.
I am signed into Prismic CLI and have tried to re-enter my details with no joy (same error as above)
Any tips to where I may be going wrong?
Thanks
Jake
And also we published a troubleshoot guide, here:
Thanks for installing Slice Machine and contributing to the development of this open source project.
Currently, Slice Machine is mostly in beta, with Slice Machine in alpha. So, you might encounter some issues.
Here are the most common issues and the solutions. This list is up-to-date as of January 12, 2021. Please feel free to suggest additions.
First: Check Your Versions
The current working versions are here:
slice-machine-ui: https://www.npmjs.com/package/slice-machine-ui
prismic-cli: ht…
Let me know after trying this.
Thanks,
Priyanka
jake
(Jake Walters)
December 21, 2020, 12:23pm
4
Is your "apiEndpoint" set in your sm.json?
I've noticed this isn't always configured correctly when adding to an existing Nuxt project.
{
"libraries": [
"@/slices"
],
"apiEndpoint": "https://{{NAME}}.cdn.prismic.io/api/v2",
"storybook": "http://localhost:3003 "
}
fabrice
(fab cor)
December 31, 2020, 12:01pm
5
I think I understood... not sure though !?
But if it helps someone not smashing his computer:
As soon as I removed the capital letter I had in my repo name, I could authenticate !!!