question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

If user tracking fails to connect, slicemachine fails and is unusable

See original GitHub issue

Versions

  • slice-machine-ui: 0.4.2
  • node: 16.10.0

Reproduction

When using DNS ad-blocking, slicemachine dies when invoked in develop mode and the page is loaded

Additional Details Console error:
[slice-machine] AxiosError: connect ECONNREFUSED 0.0.0.0:443
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1146:16) {
...
_currentUrl: 'https://....D6P:@api.segment.io/v1/batch',

I’ve obscured the API key for segment.io -> Twilio tracking

Steps to reproduce

Enable pi-hole, a DNS ad blocker or point api.segment.io to an invalid IP or localhost

What is expected?

Customer tracking should be optional and not mandatory for the slice machine to work

What is actually happening?

Slicemachine closes when the local page is loaded

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
lachiehcommented, Aug 18, 2022

@ReeceM that works! Thanks!

For posterity, the command is: npx @slicemachine/init script --tracking false

It would still be good to fix the underlying issue, and I’d be willing to assist with it if PRs are accepted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Slice Machine - Developing with Prismic
Unable to push slices to prismic in slice-machine. Error running Slice Machine command. Is it possible to use SliceZone + SlicesBlock.
Read more >
Issues · prismicio/slice-machine - GitHub
A series of tools for developing and deploying website sections with Prismic - Issues · prismicio/slice-machine.
Read more >
1734483 – Test failure: Cluster upgrade should maintain a ...
+++ This bug was initially created as a clone of Bug #1734462 +++ Description of problem: Cluster upgrade seems to timeout. [Disruptive] Cluster...
Read more >
Prismic Slicemachine, Uniform, and Nuxt
When a user visits a specific page that has behavior tracking on it, Uniform tracks this user and remembers the intent. Let's say...
Read more >
983871 - error: internal error: failed to get cgroup backend for ...
After an upgrade+reboot I cannot start VMs *again* with some cgroup error: > > $ wirrsh start Netboot > error: Failed to start...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found