If user tracking fails to connect, slicemachine fails and is unusable
See original GitHub issueVersions
- 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:
- Created a year ago
- Reactions:1
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
@lachieh https://github.com/prismicio/slice-machine/issues/466#issuecomment-1136124618
/cc @comeprismic if this is still correct?