Hi, we are trying to push several custom type and slices changes to prismic using the slice machine. However, every time we click on the "Push to Prismic" button we get the following error on the console:
An error happened while pushing your changes
Error: Unable to upload screenshot with status code: 400
at ScreenshotsManager.uploadScreenshot
Hi @Priyanka thanks for your answer, We tried pushing the changes using node v18 and got the same error.
Node version: 18.17.0
npm version: 9.6.7
We deleted the node_modules folder and ran npm install again after the change, ran slice machine and clicked on the "Push Changes" button, however we got the same error message:
An error happened while pushing your changes
Error: Unable to upload screenshot with status code: 400
at ScreenshotsManager.uploadScreenshot
I started a new Next.js project with the Slice Machine, and I can not reproduce the issue. I am successfully able to push slices and custom types. These are my dependencies and devDependencies: