error of clientlib in publisher | Community
Skip to main content
Level 2
February 10, 2025

error of clientlib in publisher

  • February 10, 2025
  • 4 replies
  • 1003 views

I am having a captcha functionality where I am using jquery captcha(https://github.com/honguangli/jquery-captcha/blob/master/js/jquery-captcha.js) functionality. Where I was loading those scripts using clientlibs. It is working properly in author env. I was getting the below error in publisher.  I tried removing cache in browser and server. Restarted the server and invalidated the clientlibs. I was getting the same error. Any one can helpme to get some solution!

 

 

4 replies

Level 2
February 10, 2025

Hi @7156010,

Please share dispatcher log and publisher error.log after hitting the url.

Level 2
February 10, 2025

HI @julkar__naim  I am directly accessing it through publisher

 

Jagadeesh_Prakash
Community Advisor
Community Advisor
February 10, 2025

@sudeepkonjeti 

 

If you are getting 500 Internal server errors, there should be some log error. Can you please check and past it here. 

 

And also if you are sure that this error is because of jquery captcha(https://github.com/honguangli/jquery-captcha/blob/master/js/jquery-captcha.js)  load the js separately and not along with client js and try. 

Level 2
February 10, 2025

If I load seperatly it is working fine. But with clientlib js it is not loading 

org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught IOException
java.io.IOException: Error while sending cached library: javax.jcr.RepositoryException: Error during assembly of /apps/tr/components/layout/checker/clientlibs.js

 

 

SreenivasBr
Level 4
February 10, 2025

It will be most likely that the client library is not getting generated due to the minification. Sometimes the default yui compressor does not work for your js. Try using gcc as the processor and see if it works.

Refer - https://experienceleague.adobe.com/en/docs/experience-cloud-kcs/kbarticles/ka-16544

https://experienceleague.adobe.com/en/docs/experience-manager-65/content/implementing/developing/introduction/clientlibs#using-preprocessors

 

Try if this works.

kautuk_sahni
Community Manager
Community Manager
April 1, 2025

@sudeepkonjeti Did you find the suggestions helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Kautuk Sahni