-
Notifications
You must be signed in to change notification settings - Fork 365
Slate Analytics 404 #1075
Comments
Thanks @curiouscrusher @t-kelly What's the word here? Noticed this issue starting this morning. Will there be a patch provided? |
The internal Kafka service I was using for Slate analytics has been shut down. Will open a PR to remove this and the consent form that users agree to when installing Slate. These analytics have been really helpful, showing 2500+ weekly active users running Slate. This ultimately helps add fuel to fire of getting Slate/developer tooling prioritized. Thanks all! |
Great to hear there's some solid numbers behind Slate usage, thanks for the insight there @t-kelly! Looking forward to the patch and hopefully increased project priority 🤞 |
In the meantime you can silence these errors by updating your node_modules/@shopify/slate-analytics/index.js file to suppress errors on line 95: |
Similarly useful fix; Edit, permanent fix, run in your terminal/powershell; tl;dr: sets |
I suspect due to Slate's end of support, folks will be experiencing the same error above. Commenting the following line of code from return axios('https://v.shopify.com/slate/track', axiosConfig); |
In case this is of any use to people, I solved this issue by creating a script that I run on #!/bin/bash
function clear-slate-analytics() {
rm node_modules/@shopify/slate-analytics/index.js
touch node_modules/@shopify/slate-analytics/index.js
echo "async function init(){}function event(n,t){}module.exports={init:init,event:event};" >> node_modules/@shopify/slate-analytics/index.js
}
clear-slate-analytics
That last line just replaces all the functions with a no-op. |
Hey i cant find @Shopify in my node_modules have the same issue can anyone help ? |
@rafaelfranca what does If nothing than it’s most likely you aren’t using a recent version of Slate (before deprecation). |
I created a fork for slate-tools with this error fixed. If you wanna use it do this:
|
This repo is currently on low maintenance. See README for details
Problem
Shopify's Slate Analytics has been disabled/broken/shut down which causes recurring 404s when using Slate.
Replication steps
watch
orstart
More Information
Because the analytics service has been disabled/broken/shut down, the 404 can be patched by disabling the Axios post in
node_modules/@shopify/slate-analytics/index.js
. As always this patch will only last until you install a project dependency or update project dependencies.The text was updated successfully, but these errors were encountered: