Skip to content

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

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions