question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] A0 characters in the first line

See original GitHub issue

Updated 2022-11-09: With the latest version 1.13.0, you may not run into these issues any more, just check out receiptio and add an option -p generic, everything should be normal now.


Hi team, thanks for the great work in advance!

I would like to report a bug here, check below as a reproduction repository:

https://github.com/Ynewtime/receiptline-report

Basic description: I copied the code directly from https://github.com/receiptline/receiptio and tried to print out something, but there is always an A0 characters in the first line:

const receiptio = require('receiptio');

const receiptmd = `^^^RECEIPT

12/18/2021, 11:22:33 AM
Asparagus | 1| 1.00
Broccoli  | 2| 2.00
Carrot    | 3| 3.00
---
^TOTAL | ^6.00`;

receiptio.print(receiptmd, '-d 192.168.192.168 -p escpos -c 42').then(result => {
    console.log(result);
});

I switched another printer model but it appeared again.

1

So I suspect if it was related to the receiptline codebase.

Thanks again for the great work!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Ynewtimecommented, Nov 9, 2022

Just review the latest 1.13.0 commits, and boom! It works amazingly great, now all the custom commands I made for my printers can be removed, just by adding an option in receiptio: -p generic! Also I tested the QR code support and it’s also there! Really amazing work, thank you teams.

0reactions
Ynewtimecommented, Oct 14, 2022

Really helpful! Thanks, I’ve customized the commands and it works great!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected latex error: Text line contains an invalid character
A funny symbol that I can't read has just been input. Continue and I'll forget it ever happened. ! Text line contains an...
Read more >
Trying to retrieve first 5 characters from string in bash error?
I'm trying to retrieve the first 5 characters from a string and but keep getting a Bad substitution error for the string manipulation...
Read more >
A quick tale about FEFF, an invisible UTF-8 character that ...
A quick tale about FEFF, an invisible UTF-8 character that wrecked our CSV files.
Read more >
Some characters missing or cut off when displayed on screen ...
Some characters missing or cut off when displayed on screen in Word · Underscore · Character with an ascender · Character with a...
Read more >
fgets() — Read a String - IBM
The fgets() function reads characters from the current stream position up to and including the first new-line character (\n), up to the end...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found