Closed ncpa0cpl closed 1 year ago
@ncpa0cpl Thank you for your report. We can reproduce this issue and will be fixed in the future update. We much appreciate your patience and understanding.
@ncpa0cpl We have fixed this Issue in the latest version. Thank you again for your report and patience!
Description
I've had a print fail in the middle of printing (half of the receipt was printed correctly). When investigating the issue I've determined that there was a invalid structure within the commands json file that is sent to the printer. Specifically there was an object with a
category
property with value ofPrinter
and did not had thecontent
property like other objects with that category. This was causing the printer to stop on that instruction and not continue the printing.How it looked like:
After manually changing the structure to this, that problem went away:
Your device where the bug occurs
Your printer
Your development environment
react-native-star-io10
pacakge at version1.2.0
To Reproduce
Steps to reproduce the behavior:
PrinterBuilder
to theDocumentBuilder
, and that document builder intoStarXpandCommandBuilder
getCommands
methodExample:
Expected behavior
The structure of the commands should be valid, so that the printer never fails mid printing.