# Troubleshooting Slice Machine

**URL:** <https://community.prismic.io/t/troubleshooting-slice-machine/3002>\
**Category:** Developing with Prismic\
**Created:** [December 3, 2020, 4:44pm UTC](https://community.prismic.io/t/troubleshooting-slice-machine/3002 "2020-12-03T16:44:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![samlittlefair](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/samlittlefair/32/696_2.png) [@samlittlefair](https://community.prismic.io/u/samlittlefair)\
**Post date:** [December 3, 2020, 4:44pm UTC](https://community.prismic.io/t/troubleshooting-slice-machine/3002/1 "2020-12-03T16:44:17Z")

</div>

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](https://www.npmjs.com/package/slice-machine-ui)
- `prismic-cli`: [https://www.npmjs.com/package/prismic-cli](https://www.npmjs.com/package/prismic-cli)

## Error: "[slices API]: Not Found" Try: Changing Clusters

The first issue that you might run into is that your repo is not on a Slice Machine-enabled cluster in Prismic's backend. This should not happen with repos created through the Slice Machine CLI, but it can happen with others. Send us a request, and we'll add your repo to a Slice Machine cluster.

## Error: "Forbidden" Try: Reauthentication

This could be an issue with authentication. Try logging out and in:

```bash
prismic logout
prismic login
# enter credentials

```

If that doesn't work, make sure:

- you are inside a SliceMachine project,
- your `sm.json` file contains a valid "apiEndpoint" value,
- you can access this repository from your dashboard.

## Error: EOENT, File Not Found, or Preview issue Try: Changing versions

These issues are likely because you're not on the right version of `slice-machine-ui`. Change to 0.0.42.

## Error: 413 Try: Update `slice-machine-ui`

Error 413 was an issue with uploading preview images. We released a fix for it with `slice-machine-ui 0.0.43`.

## Error: "Invalid Paths" Try: Update `slice-machine-ui`

This was related to a typo in an earlier version of `slice-machine-ui`. Try updating `slice-machine-ui`.

Otherwise, you can try replacing `list,o` with `list-item,o-list-item` in your model, and see if that helps.

## If all else fails

- Reinstall the Prismic CLI
- Reauthenticate (as above)
- Check that your repo name is correct in your config file
- Restart your project from scratch
- Contact us with your error message and a zip file or GitHub repo containing your project files

---

<div class="post-metadata">

**Author:** ![samlittlefair](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/samlittlefair/32/696_2.png) [@samlittlefair](https://community.prismic.io/u/samlittlefair)\
**Post date:** [December 3, 2020, 4:45pm UTC](https://community.prismic.io/t/troubleshooting-slice-machine/3002/2 "2020-12-03T16:45:32Z")

</div>

Pinned on December 3, 2020, 4:45pm UTC



---

<div class="post-metadata">

**Author:** ![hugo.villain](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/hugo.villain/32/186_2.png) [@hugo.villain](https://community.prismic.io/u/hugo.villain)\
**Post date:** [December 4, 2020, 12:31pm UTC](https://community.prismic.io/t/troubleshooting-slice-machine/3002/4 "2020-12-04T12:31:11Z")

</div>

> [@samlittlefair](#):
>
> Error: "Forbidden"

For this, you might also check that:

- you are inside a SliceMachine project
- your `sm.json` file contains a valid "apiEndpoint" value
- you can access this repository from your dashboard

---

<div class="post-metadata">

**Author:** ![samlittlefair](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/samlittlefair/32/696_2.png) [@samlittlefair](https://community.prismic.io/u/samlittlefair)\
**Post date:** [December 4, 2020, 3:05pm UTC](https://community.prismic.io/t/troubleshooting-slice-machine/3002/5 "2020-12-04T15:05:09Z")

</div>

Thank you, @hugo.villain 🙂 I added your points.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [December 11, 2020, 4:15pm UTC](https://community.prismic.io/t/troubleshooting-slice-machine/3002/8 "2020-12-11T16:15:39Z")

</div>

@samlittlefair I found a couple of other little issues that we already have fixes for and we're just waiting to push.

**CLI**  
The SESSION cookie expires quite often, so if someone tries to create a repo with `--setup` or `theme` and it doesn't get created, then they will need to log out and login again for it to work.

@marc.mcintosh Has a fix for this on his new branch of the CLI which will be released sometime in the future.

**Slice Machine**  
It doesn't add lists correctly in the model, causing a push error. You'll have to replace `list,o` with `list-item,o-list-item` to push.

@hugo.villain made the fix, he'll push next week.

---

<div class="post-metadata">

**Author:** ![samlittlefair](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/samlittlefair/32/696_2.png) [@samlittlefair](https://community.prismic.io/u/samlittlefair)\
**Post date:** [December 14, 2020, 10:02am UTC](https://community.prismic.io/t/troubleshooting-slice-machine/3002/10 "2020-12-14T10:02:52Z")

</div>

Thanks, @Phil. I've added the point about the list element. 👍

---

<div class="post-metadata">

**Author:** ![samlittlefair](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/samlittlefair/32/696_2.png) [@samlittlefair](https://community.prismic.io/u/samlittlefair)\
**Post date:** [July 23, 2021, 11:46am UTC](https://community.prismic.io/t/troubleshooting-slice-machine/3002/11 "2021-07-23T11:46:43Z")

</div>

closed on July 23, 2021, 11:46am UTC, flag & select 'Something Else' to reopen.

Threads close after a period of inactivity. [Flag this thread](https://community.prismic.io/t/re-open-a-thread/2175) to re-open it and continue the conversation.
