Slicemachine Error

Describe your question/issue in detail

Hello guys. I have the problem with the Slicemachine. When I run dev in the terminal, Slicemachine is starting, but very often I see the error logs in the terminal. At the same time, the Slicemachine is working not very stable.

Errors

[slicemachine] [Experiment] Retry falied:  Error: getaddrinfo ENOTFOUND api.lab.amplitude.com
[slicemachine]     at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
[slicemachine]   errno: -3008,
[slicemachine]   code: 'ENOTFOUND',
[slicemachine]   syscall: 'getaddrinfo',
[slicemachine]   hostname: 'api.lab.amplitude.com'
[slicemachine] }

Package.json file

{
  "name": "nuxt-starter-prismic-minimal",
  "version": "0.0.0",
  "private": true,
  "license": "Apache-2.0",
  "author": "Prismic <contact@prismic.io> (https://prismic.io)",
  "scripts": {
    "dev": "concurrently \"npm:nuxt:dev\" \"npm:slicemachine\" --names \"nuxt,slicemachine\" --prefix-colors green,magenta",
    "nuxt:dev": "nuxt dev",
    "build": "nuxt build",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare",
    "slicemachine": "start-slicemachine",
    "lint": "eslint ."
  },
  "devDependencies": {
    "@iconify-json/lucide": "^1.2.27",
    "@nuxt/eslint": "^0.7.5",
    "@nuxt/icon": "^1.10.3",
    "@nuxtjs/prismic": "^4.0.1",
    "@slicemachine/adapter-nuxt": "^0.3.68",
    "@tailwindcss/typography": "^0.5.16",
    "concurrently": "^9.1.2",
    "eslint": "^9.18.0",
    "nuxt": "^3.15.2",
    "prettier": "^3.5.2",
    "prettier-plugin-tailwindcss": "^0.6.11",
    "slice-machine-ui": "^2.13.1"
  },
  "dependencies": {
    "@tailwindcss/vite": "^4.0.9",
    "gsap": "^3.12.7",
    "tailwindcss": "^4.0.9"
  }
}

Steps to reproduce

I run npm run dev and see the issues. Sometimes I don't have them at all, but in general, I can see it.

Hi @dlencode,

Thanks for reaching out about this! First off, we can confirm while this isn't ideal, Slice Machine should work well even if you see those errors. You mentioned it was unstable, can you elaborate a bit on this?

The errors you see could be a couple of different things - I can try to see if I'm able to reproduce it to investigate it more closely. Can you give me a little bit more information about your set up, do you have a specific browser you usually use and anything else I should know? I see in your package.json file you're using nuxt, have you by any chance notice this happening in different projects if you have others?

It could also be an issue with your DNS. Since this seems to be intermittent it might not be related and harder to test, but could you try using a different network (for example a mobile hotspot)? You can also test with a direct ping. Run this in your terminal:

ping api.lab.amplitude.com
  • If it says "Ping request could not find host" or "Name or service not known", it’s a DNS issue.
  • If it returns an IP address, then DNS is fine, and the issue is something else.

Let me know how that goes!

Some additional information from the team for you: we've seen this when someone enabled a DNS-level adblock on their home network. It's possible you are indirectly blocking Amplitude through something like https://pi-hole.net. Does that ring a bell? :slight_smile: