Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QR code not visible over generated pdf post ami upgrade #692

Open
srrao11 opened this issue Aug 25, 2022 · 2 comments
Open

QR code not visible over generated pdf post ami upgrade #692

srrao11 opened this issue Aug 25, 2022 · 2 comments

Comments

@srrao11
Copy link

srrao11 commented Aug 25, 2022

I have recently migrated my ec2 instance from ami1 to ami2. Post upgrade the qr code (which is usually a byte array) is not getting generated.
Also during upgrade i was getting error like :

{
"stack": "Error: /opt/boson/userTravellerProfile/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory\n\n    
 at ChildProcess.<anonymous> (/opt/boson/userTravellerProfile/node_modules/html-pdf/lib/pdf.js:121:17)\n    
 at emitTwo (events.js:126:13)\n    at ChildProcess.emit (events.js:214:7)\n    
 at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)",
"message": "/opt/boson/userTravellerProfile/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory\n"
}

So i installed fontconfig : sudo yum install -y fontconfig

@srrao11
Copy link
Author

srrao11 commented Sep 1, 2022

The qr code is present as an html image tag <img src='some-url'> which fetches byte array from an url.

@srrao11
Copy link
Author

srrao11 commented Sep 7, 2022

Instead of passing <img src='some-url'> . now i am passing base64 encoded string like <img src="data:image/jpg;base64,<encoded-string>" >

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant