I'm just trying to get started and i'm following the instructions given to me and when I put in
npx @slicemachine/init --repository project-name
i get
PS C:\Projects\project-name> npx @slicemachine/init --repository project-name
You're about to configure Slicemachine... Press ctrl + C to cancel
Logged in as johndoe@meetmarvin.com
Next.js detected
Pushing existing Slice models to your repository
Pushing existing custom types to your repository
Pushing existing documents to your repository
Error! Sending documents failed, please try again. If the problem persists, contact us.
Error! Full error: ERR_BAD_REQUEST - Request failed with status code 401
Logged in as myemail.com
Next.js detected
The name acts as a domain/endpoint for your content repo and should be completely unique.
? Name your Prismic repository https://testreponext.prismic.io
Error creating repository testreponext
Error! Request failed with status code 401
Error! We failed to create you new prismic repository
@Priyanka I am having the same issue when running the following command:
npx @slicemachine/init@latest
I have tried both to create a new repository and selecting an already existing repository but I keep getting the following error:
Pushing data to Prismic...
Pushed all slices
Pushed all custom types
Pushing documents...
→ Failed to push documents to repository ***, 401 Unauthoriz…
Cleaning up data push artifacts
Error: Failed to push documents to repository ***, 401 Unauthorized
Unfortunately, it was a little urgent and I ended up moving onto using another headless CMS, but I am still very interested in learning/setting up Prismic. I will try again to see if I still get the error and will ping you here. Thank you!
I apologize for not coming back to you on time. I assure you we can resolve the issue together.
401 error usually is an authentication error. Can you try logout and retry login from the terminal?
What version of npm and node do you have in your locale?
If nothing works, I'd be more than happy to debug deeply. To debug this, I need the Prismic repo name and project files. I will check it on my local.
You can send me a private message.