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:
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?
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:
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?
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
Kindly try this and let us know, if you have any concerns.