Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

JS under clientlibs not getting rendered completely from dispatcher

gouravl42621933
Level 1
Level 1

Hi all,

 

I am having a major issue whilst accessing a  page through webserver domain on local environment- Even though JS is getting cached correctly in dispatcher ,however, whilst accessing a page through domain the JS doesn’t load completely in browser and an error is also shown in console which is making many components on the page dysfunctional.

 

For instance, JS in dispatcher and publisher ends like below:

 

j();

a(this)

})

}catch(d){b(d,"Could not initialize the banners")

}}catch(d){b(d,"Init failed")

}});

 

 

However, In browser its only fetched upto something like below; last few characters go a miss causing syntax error.

j();

a(this)

})

}catch(d){b(d,"Could not initialize the banners")

}}

 

Browser console shows:

Capture.PNG

 

this only happens when I access the page from webserver(dispatcher)- I don't get any error whilst accessing a page on author or publish instance.

 

I thought this has something to do with minification, but even after turning off minification I am facing the same issue so will rule out this possibility.

 

this is happening for more than one JS file? Is it something to do with dispatcher configurations??

 

also, when I access the URL with query parameter ?debugClientLibs=true    Though, I get lots of error in browser console but all the components work as expected.

 

Can anyone please help here?

 

Thanks

1 Accepted Solution
Lokesh_Shivalingaiah
Correct answer by
Community Advisor
Community Advisor

Hi,

I am not seeing the image you have attached! 

but I think, there should be something blocking at the dispatcher. Check if you any such rules in your dispatcher config.

View solution in original post

1 Reply
Lokesh_Shivalingaiah
Correct answer by
Community Advisor
Community Advisor

Hi,

I am not seeing the image you have attached! 

but I think, there should be something blocking at the dispatcher. Check if you any such rules in your dispatcher config.

View solution in original post