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

qrCode.getRawData("png") never resolving on invalid image path #192

Open
ghost opened this issue Feb 1, 2024 · 0 comments
Open

qrCode.getRawData("png") never resolving on invalid image path #192

ghost opened this issue Feb 1, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 1, 2024

The issue can be reproduced by introducing an invalid "image" path for the QR Code Config.
If done, the await qrCode.getRawData("png"); will never resolve.

I am sending that issue evn if the fix is easy, as there was no error thrown while I encountered this case.

let qrCodeConfig = {};
qrCodeConfig.data = string;
qrCodeConfig.image = "invalid_file.png";

let qrCode = new QRCodeStyling(qrCodeConfig)
let qrCodePng = await qrCode.getRawData("png"); // <- Big Boy will never resolve

Note: Have not tested with any other argument file type for getRawData

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

0 participants