Server Side Rendering Error

I get this in browser console. Wanted to let you know:

Server-Side-Rendering failed! using clientfallback which means your user will see the site much slower. Reason: ResourceFetchError: Fetch failed, giving up. [Last error: FetchError: network timeout at: http://api.42.wixprod.net/wix-code-public-dispatcher/routers/data-binding/pages?viewMode=site&scari=663a8e6a5519e105ed3ba7be59b088777aac4d41.eyJncmlkQXBwSWQiOiIwN2VkOWFmZS05YTFjLTQ4M2QtYjQ5NC03NzA3YWM2NjdiZTAiLCJodG1sU2l0ZUlkIjoiYTdlMTExMzctYjVmZC00ZGU4LWI3ZjItZTJiOTVjNzUwOTBiIiwiZGVtb0lkIjpudWxsLCJzaWduRGF0ZSI6MTUyODczMTUwMTA0OH0=&instance=abbb200548f5b1c200c68604211188dc08e06fbb.eyJpbnN0YW5jZUlkIjoiNzg2M2EyMWEtMmNiNS00MjlkLTgxMGMtZmM3ZjYwNzU3MDkxIiwiaHRtbFNpdGVJZCI6ImE3ZTExMTM3LWI1ZmQtNGRlOC1iN2YyLWUyYjk1Yzc1MDkwYiIsInVpZCI6IjcwNDcyMWNlLWY4MjQtNGIzYi1hMzFjLTQwZTQ3ZGZmMzMyNSIsInBlcm1pc3Npb25zIjpudWxsLCJpc1RlbXBsYXRlIjpmYWxzZSwic2lnbkRhdGUiOjE1Mjg3MzE1MDEwMzQsImFpZCI6IjcwNDcyMWNlLWY4MjQtNGIzYi1hMzFjLTQwZTQ3ZGZmMzMyNSIsImFwcERlZklkIjoiQ2xvdWRTaXRlRXh0ZW5zaW9uIn0=] [First error: FetchError: network timeout at: http://api.42.wixprod.net/wix-code-public-dispatcher/routers/data-binding/pages?viewMode=site&scari=663a8e6a5519e105ed3ba7be59b088777aac4d41.eyJncmlkQXBwSWQiOiIwN2VkOWFmZS05YTFjLTQ4M2QtYjQ5NC03NzA3YWM2NjdiZTAiLCJodG1sU2l0ZUlkIjoiYTdlMTExMzctYjVmZC00ZGU4LWI3ZjItZTJiOTVjNzUwOTBiIiwiZGVtb0lkIjpudWxsLCJzaWduRGF0ZSI6MTUyODczMTUwMTA0OH0=&instance=abbb200548f5b1c200c68604211188dc08e06fbb.eyJpbnN0YW5jZUlkIjoiNzg2M2EyMWEtMmNiNS00MjlkLTgxMGMtZmM3ZjYwNzU3MDkxIiwiaHRtbFNpdGVJZCI6ImE3ZTExMTM3LWI1ZmQtNGRlOC1iN2YyLWUyYjk1Yzc1MDkwYiIsInVpZCI6IjcwNDcyMWNlLWY4MjQtNGIzYi1hMzFjLTQwZTQ3ZGZmMzMyNSIsInBlcm1pc3Npb25zIjpudWxsLCJpc1RlbXBsYXRlIjpmYWxzZSwic2lnbkRhdGUiOjE1Mjg3MzE1MDEwMzQsImFpZCI6IjcwNDcyMWNlLWY4MjQtNGIzYi1hMzFjLTQwZTQ3ZGZmMzMyNSIsImFwcERlZklkIjoiQ2xvdWRTaXRlRXh0ZW5zaW9uIn0=]
console.error @ instruments.js:536
n @ lodash.min.js:5
Lt @ lodash.min.js:29
n @ lodash.min.js:5
(anonymous) @ lodash.min.js:63
(anonymous) @ render.min.js:1
renderFromPrepared @ render.min.js:1
(anonymous) @ render.js:374
(anonymous) @ render.js:275
R.i @ render.js:176
execCb @ require.min.js:29
check @ require.min.js:18
enable @ require.min.js:23
init @ require.min.js:17
(anonymous) @ require.min.js:26
setTimeout (async)
g.nextTick @ require.min.js:32
j @ require.min.js:26
requirejs @ require.min.js:31
R @ render.js:182
D @ render.js:273
(anonymous) @ render.js:373
(anonymous) @ render.js:239
R.i @ render.js:176
execCb @ require.min.js:29
check @ require.min.js:18
(anonymous) @ require.min.js:23
(anonymous) @ require.min.js:8
(anonymous) @ require.min.js:23
v @ require.min.js:7
emit @ require.min.js:23
check @ require.min.js:19
(anonymous) @ require.min.js:23
(anonymous) @ require.min.js:8
(anonymous) @ require.min.js:23
v @ require.min.js:7
emit @ require.min.js:23
check @ require.min.js:19
enable @ require.min.js:23
init @ require.min.js:17
E @ require.min.js:14
completeLoad @ require.min.js:28
onScriptLoad @ require.min.js:29
load (async)
g.load @ require.min.js:34
load @ require.min.js:29
load @ require.min.js:18
fetch @ require.min.js:17
check @ require.min.js:19
enable @ require.min.js:23
enable @ require.min.js:27
(anonymous) @ require.min.js:23
(anonymous) @ require.min.js:8
v @ require.min.js:7
enable @ require.min.js:22
init @ require.min.js:17
E @ require.min.js:14
completeLoad @ require.min.js:28
onScriptLoad @ require.min.js:29
load (async)
g.load @ require.min.js:34
load @ require.min.js:29
load @ require.min.js:18
(anonymous) @ require.min.js:17
(anonymous) @ require.min.js:8
execCb @ require.min.js:29
check @ require.min.js:18
enable @ require.min.js:23
init @ require.min.js:17
(anonymous) @ require.min.js:26
setTimeout (async)
g.nextTick @ require.min.js:32
j @ require.min.js:26
fetch @ require.min.js:17
check @ require.min.js:19
enable @ require.min.js:23
enable @ require.min.js:27
(anonymous) @ require.min.js:23
(anonymous) @ require.min.js:8
v @ require.min.js:7
enable @ require.min.js:22
init @ require.min.js:17
(anonymous) @ require.min.js:26
setTimeout (async)
g.nextTick @ require.min.js:32
j @ require.min.js:26
requirejs @ require.min.js:31
R @ render.js:182
L @ render.js:385
(anonymous) @ render.js:392
(anonymous) @ warmup.js:63
(anonymous) @ zepto.min.js:2
lodash.min.js:5 stack trace from server: ResourceFetchError: Fetch failed, giving up. [Last error: FetchError: network timeout at: http://api.42.wixprod.net/wix-code-public-dispatcher/routers/data-binding/pages?viewMode=site&scari=663a8e6a5519e105ed3ba7be59b088777aac4d41.eyJncmlkQXBwSWQiOiIwN2VkOWFmZS05YTFjLTQ4M2QtYjQ5NC03NzA3YWM2NjdiZTAiLCJodG1sU2l0ZUlkIjoiYTdlMTExMzctYjVmZC00ZGU4LWI3ZjItZTJiOTVjNzUwOTBiIiwiZGVtb0lkIjpudWxsLCJzaWduRGF0ZSI6MTUyODczMTUwMTA0OH0=&instance=abbb200548f5b1c200c68604211188dc08e06fbb.eyJpbnN0YW5jZUlkIjoiNzg2M2EyMWEtMmNiNS00MjlkLTgxMGMtZmM3ZjYwNzU3MDkxIiwiaHRtbFNpdGVJZCI6ImE3ZTExMTM3LWI1ZmQtNGRlOC1iN2YyLWUyYjk1Yzc1MDkwYiIsInVpZCI6IjcwNDcyMWNlLWY4MjQtNGIzYi1hMzFjLTQwZTQ3ZGZmMzMyNSIsInBlcm1pc3Npb25zIjpudWxsLCJpc1RlbXBsYXRlIjpmYWxzZSwic2lnbkRhdGUiOjE1Mjg3MzE1MDEwMzQsImFpZCI6IjcwNDcyMWNlLWY4MjQtNGIzYi1hMzFjLTQwZTQ3ZGZmMzMyNSIsImFwcERlZklkIjoiQ2xvdWRTaXRlRXh0ZW5zaW9uIn0=] [First error: FetchError: network timeout at: http://api.42.wixprod.net/wix-code-public-dispatcher/routers/data-binding/pages?viewMode=site&scari=663a8e6a5519e105ed3ba7be59b088777aac4d41.eyJncmlkQXBwSWQiOiIwN2VkOWFmZS05YTFjLTQ4M2QtYjQ5NC03NzA3YWM2NjdiZTAiLCJodG1sU2l0ZUlkIjoiYTdlMTExMzctYjVmZC00ZGU4LWI3ZjItZTJiOTVjNzUwOTBiIiwiZGVtb0lkIjpudWxsLCJzaWduRGF0ZSI6MTUyODczMTUwMTA0OH0=&instance=abbb200548f5b1c200c68604211188dc08e06fbb.eyJpbnN0YW5jZUlkIjoiNzg2M2EyMWEtMmNiNS00MjlkLTgxMGMtZmM3ZjYwNzU3MDkxIiwiaHRtbFNpdGVJZCI6ImE3ZTExMTM3LWI1ZmQtNGRlOC1iN2YyLWUyYjk1Yzc1MDkwYiIsInVpZCI6IjcwNDcyMWNlLWY4MjQtNGIzYi1hMzFjLTQwZTQ3ZGZmMzMyNSIsInBlcm1pc3Npb25zIjpudWxsLCJpc1RlbXBsYXRlIjpmYWxzZSwic2lnbkRhdGUiOjE1Mjg3MzE1MDEwMzQsImFpZCI6IjcwNDcyMWNlLWY4MjQtNGIzYi1hMzFjLTQwZTQ3ZGZmMzMyNSIsImFwcERlZklkIjoiQ2xvdWRTaXRlRXh0ZW5zaW9uIn0=]
at _.reduce.catch.err (/app/src/pages/resource-fetcher.js:89:21)
at
at process._tickCallback (internal/process/next_tick.js:188:7)

Do you have await or async in client code this will be the reason. Or using fetch client side will also make this error, move all that to backend code.

Hey Giri, Andreas,
I have the same issue since 3 days. It was all working fine with my async and await in the page code. But I don’t know why it is happening now.

Please make sure that the code you have written complies with the SSR specifications that was released in the beginning of march. All async / await in page code seem to mess the SSR machine up a bit and have to be done the SSR way. Also some code can’t be executed on servers like session, cookies, window, location and such.

Andreas, with " and have to be done the SSR way ", do you mean outside $w, but still on the page code?

Hey, read the thread under forum Product Updates, all info is there.

Hi all.

The issue was resolved.

Thanks,
Genry.