We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

"Web-service is not listening"

Hi,

I am testing PfViewer and have encountered a problem - when I deploy my app to docker container to be run on GCP Cloud Run, I get the message: "Web-service is not listening.." Same app runs OK on local host. I've seen multiple similar posts, but nothing seems to help. I have also followed and used sample that you provide here:

https://www.syncfusion.com/forums/171890/encounterred-an-error-when-loading-pdf-viewer-web-service-not-listening

and on localhost it runs very well, but once I upload it to Cloud Run, I get the same error.

What could be the reason for it?


Regards,

Janis


3 Replies

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team April 20, 2023 10:13 AM UTC

Open the developer tools and share the network tab response as in the screenshot while the "Web service not listening issue" occurred. This details will be helpful for us check in our end.




Please follow the below steps to check the network tab response:


  • Open the developer tools.
  • Go to Network tab.
  • Load the PDF document.
  • Click the server action method. In the given screenshot, we checked the Download server action.
  • .Go to Response tab.
  • Share the response tab error details.


JD Janis Dzenis April 20, 2023 12:50 PM UTC

Hi Chinnamunia ,

Not sure, if I did it right, but I got something like this:

"The type initializer for 'Syncfusion.EJ2.PdfViewer.PdfiumNative' threw an exception."

Does this make any sense? Maybe I can share with you web link so you can get all the details you need?


Regards,

Janis





CK Chinnamunia Karthik Chinna Thambi Syncfusion Team April 21, 2023 11:45 AM UTC

From the given error details, We suspect PDFium dependency is not installed the deployed environment. We have shared the commands to install the pdfium dependency package in the Linux machine and also we have shared docker file below for your reference. Please modify your docker file as in the given file docker file.


 

RUN ln -s /lib/x86_64-linux-gnu/libdl-2.24.so /lib/x86_64-linux-gnu/libdl.so

# install System.Drawing native dependencies

RUN apt-get update && apt-get install -y --allow-unauthenticated libgdiplus libc6-dev libx11-dev

RUN ln -s libgdiplus.so gdiplus.dll



Docker file: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Dockerfile-1587079776.zip


Kindly try this and let us know, if you have any concerns.


Loader.
Live Chat Icon For mobile
Up arrow icon