Impossible to get prismic working - cannot push documents

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)

Not the best experience

Hello @dario.villanueva

I apologize for your experience. I can not reproduce the issue with the Next.js starter.

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?

I look forward to hearing back from you, and I assure you we will resolve the issue together.

Thanks,
Priyanka

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

Hello @vallerydelexy

Welcome to the Prismic community, and thanks for reaching out to us.

Have you tried the solution I provided above?

Thanks,
Priyanka