Skew Protection behaviour
Unanswered
Encyrtid wasp posted this in #help-forum
Encyrtid waspOP
I am facing issue after deployment on vercel, when i deploy to my production, some users getting errors shown in like below, though that js file is available at that path. i understand that when we deploy next.js automatically reload page based on deployment ID, but still this chunk failed error to coming to many users after deployment, i am able to track this down using posthog session reply console. though if i checked all below js file is still available still it fail to fetch.
"Error:" "TypeError: Failed to fetch\n at M (https://www.bingocardcreator.com/_next/static/chunks/2511-5427826001793a05.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:19725)\n at m (https://www.bingocardcreator.com/_next/static/chunks/9902.2edb5d56cad4e98f.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:4935)\n at Object.a_ (https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:72147)\n at aR (https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:72301)\n at https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:139240\n at sF (https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:139339)\n at sM (https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:139753)\n at https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:145896\n at o4 (https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:93336)\n at iV (https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:122701)\nEnd of stack for Error object"
"Error:" "TypeError: Failed to fetch\n at M (https://www.bingocardcreator.com/_next/static/chunks/2511-5427826001793a05.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:19725)\n at m (https://www.bingocardcreator.com/_next/static/chunks/9902.2edb5d56cad4e98f.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:4935)\n at Object.a_ (https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:72147)\n at aR (https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:72301)\n at https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:139240\n at sF (https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:139339)\n at sM (https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:139753)\n at https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:145896\n at o4 (https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:93336)\n at iV (https://www.bingocardcreator.com/_next/static/chunks/fd9d1056-be0277d98af88c10.js?dpl=dpl_DCSQLCgZLmJCDEZJvTWw491Apwr5:1:122701)\nEnd of stack for Error object"
7 Replies
@Encyrtid wasp
same...
I have this static chunk locally:
same...
I have this static chunk locally:
dc112a36.a9814603443fe3ec
, on production is with stale ID and a lot of users are loading the stale chunk which throws 404 and app is crashing :X@Encyrtid wasp are you using 15.3.0? I've updated to this ver yesterday and since then issues start happening
Encyrtid waspOP
@AM No, i am using 14.2.0, but thing is that the chunk that creating error and failed to fetch is still gives 200 when i hit that URL, still some users face failed to fetch many times.
@Encyrtid wasp <@584788446443208704> No, i am using 14.2.0, but thing is that the chunk that creating error and failed to fetch is still gives 200 when i hit that URL, still some users face failed to fetch many times.
exactly same for me on dev and prod but for some end users they are getting 404 ;x
@Encyrtid wasp i've just enabled SKEW protection from Settings -> Advanced on vercel, lets see ho this one will behave
Encyrtid waspOP
@AM I have already skew protection on and i see that its working when i deploy new project, page gets reload when i am not site, but my case is diffrent even if files are present at that location its throw failed to fetch.