I haven't really gotten past the tutorial? I'm trying the Next.js boilerplate code and every time i get 401 unauthorised when pushing my documents on a freshly created project
✔ Installed core dependencies with npm
✔ Updated Slice Machine configuration and loaded adapter
❯ Pushing data to Prismic...
✔ Pushed all slices
✔ Pushed all types
✖ Pushing documents...
→ Failed to push documents to repository `---------`, 401 Unauthorized
Cleaning up data push artifacts
Error: Failed to push documents to repository `---------`, 401 Unauthorized
at PrismicRepositoryManager.pushDocuments (/Users/dario/.npm/_npx/b6923b01b288b666/node_modules/@slicemachine/manager/dist/managers/prismicRepository/PrismicRepositoryManager.cjs:178:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Task.task (/Users/dario/.npm/_npx/b6923b01b288b666/node_modules/@slicemachine/init/dist/SliceMachineInitProcess.cjs:668:15)
hi, i got the same errors.
in my case i already have prismic repo, but i want to start all over again using different starter project, i pushed to the same prismic repository.
D:\Documents\Projects\temanlama-2 pnpm dlx @slicemachine/init@latest --repository temanlama
../../../.pnpm-store/v3/tmp/dlx-5108 | +345 +++++++++++++++++++++++++++++++++++
../../../.pnpm-store/v3/tmp/dlx-5108 | Progress: resolved 345, reused 344, downloaded 1, added 345, done
Slice Machine → Init command started
ℹ We collect telemetry data to improve user experience.
Learn more: https://prismic.dev/slice-machine/telemetry
✔ Detected framework Next.js 11-13 and package manager npm
✔ Began core dependencies installation with npm ... (running in background)
✔ Logged in as vallerydelexy@gmail.com
✔ Selected repository temanlama (flag repository used)
✔ Installed core dependencies with npm
✔ Updated Slice Machine configuration and loaded adapter
> Pushing data to Prismic...
✔ Pushed all slices
✔ Pushed all types
✖ Pushing documents...
→ Failed to push documents to repository `temanlama`, 401 Unauthorized
Cleaning up data push artifacts
Error: Failed to push documents to repository `temanlama`, 401 Unauthorized
at PrismicRepositoryManager.pushDocuments (D:\.pnpm-store\v3\tmp\dlx-5108\node_modules\.pnpm\@slicemachine+manager@0.6.1\node_modules\@slicemachine\manager\dist\managers\prismicRepository\PrismicRepositoryManager.cjs:178:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Task.task (D:\.pnpm-store\v3\tmp\dlx-5108\node_modules\.pnpm\@slicemachine+init@2.2.4\node_modules\@slicemachine\init\dist\SliceMachineInitProcess.cjs:668:15)
ERROR Command failed with exit code 1: slicemachine-init --repository temanlama
pnpm: Command failed with exit code 1: slicemachine-init --repository temanlama
at makeError (C:\Users\aprit\AppData\Local\pnpm\global\5\.pnpm\pnpm@8.6.7\node_modules\pnpm\dist\pnpm.cjs:24796:17)
at handlePromise (C:\Users\aprit\AppData\Local\pnpm\global\5\.pnpm\pnpm@8.6.7\node_modules\pnpm\dist\pnpm.cjs:25367:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.handler [as dlx] (C:\Users\aprit\AppData\Local\pnpm\global\5\.pnpm\pnpm@8.6.7\node_modules\pnpm\dist\pnpm.cjs:209900:7)
at async C:\Users\aprit\AppData\Local\pnpm\global\5\.pnpm\pnpm@8.6.7\node_modules\pnpm\dist\pnpm.cjs:219307:21
at async main (C:\Users\aprit\AppData\Local\pnpm\global\5\.pnpm\pnpm@8.6.7\node_modules\pnpm\dist\pnpm.cjs:219274:34)
at async runPnpm (C:\Users\aprit\AppData\Local\pnpm\global\5\.pnpm\pnpm@8.6.7\node_modules\pnpm\dist\pnpm.cjs:219529:5)
at async C:\Users\aprit\AppData\Local\pnpm\global\5\.pnpm\pnpm@8.6.7\node_modules\pnpm\dist\pnpm.cjs:219521:7