Issue reading files using QZ files api

8 views
Skip to first unread message

Subhamay Datta

unread,
Oct 19, 2025, 6:32:46 AMOct 19
to qz-print
Hi,

We are trying to create a billing system, where we are trying to generate a bill number sequentially. Initially we kept the last generated number in localStorage, but that was unreliable since when the system unexpectedly shut down, the localStorage data was out of sync/stale. So we moved to QZ (we were already using QZ for printing) to persist the sequence directly in a file, so that it has fault tolerance.

But now we are getting the following error sometimes, "_qz.websocket.sendData is not a function" and due to this the file is not being read and the bill number sequence is resetting back to 1.

How can we fix this?

Let us know, if you need any code samples.

Thanks

Tres Finocchiaro

unread,
Oct 22, 2025, 2:40:37 PMOct 22
to Subhamay Datta, qz-print
Sorry for the delay on this question, we've taken this conversation privately for now, sharing code.  We'll update the status here if we find something wrong with the application.
Reply all
Reply to author
Forward
0 new messages