After printing connection not closed and started receiving respnose again.

272 views
Skip to first unread message

Mayank Chauhan

unread,
Jul 27, 2017, 2:04:08 AM7/27/17
to qz-p...@googlegroups.com
Hello support team,

I have updated my QZ code with latest version, but now i am facing the issue that is after receipt is printed successfully connection not closing and started receiving response. Before establishing the connection it gives me JavaScript error i.e.

TypeError: _qz.websocket.connection.sendData is not a function
Stack trace:
find@http://local.driven.com/qztrayV2/js/qz-tray.js:747:24

Than, the connection is established and receipt is printed but than after connection not closing. 

Established connection with QZ Tray on ws://localhost:8182  qz-tray.js:37:32
11:10:37.777 Preparing object for websocket Object { certificate: "-----BEGIN CERTIFICATE----- MIIE1jC…", promise: Object }  qz-tray.js:35:50
11:10:37.780 Signature for call undefined  qz-tray.js:35:50
11:10:37.790 Received response from websocket Object { uid: "7uy0tc" }  qz-tray.js:35:50
11:10:37.792 Preparing object for websocket Object { call: "getVersion", promise: Object, params: undefined, signature: undefined, timestamp: undefined }  qz-tray.js:35:50
11:10:37.940 Preparing object for websocket Object { call: "printers.find", promise: Object, params: Object, signature: undefined, timestamp: undefined }  qz-tray.js:35:50
11:10:38.174 Signature for call YcY3L3ABHZnJyviXE56ZAsdL0+kTO49hhePJOy1G6Yqu3zRAzxjJ5jVHeeJnA8ovB8D70PSFGxohMEJ8EGo0AzgOVm7Cyv1QjsN+G5JiYUjXnl8QWLLxkMDGYecx2Xau0ccjwMoUXhvfN8jc95B9tl/a+PWeP3VWSok0YQcQZUm3OBTUsKItPBilQ4vzCmgcAdfksNp3UvhkKOg3iVn92bK+eKyCIq9TlrMiNXTD2JdS5/cyQfx2yh8zv6sD/z627mMU0cnh2oZUP6f5KBHLYNze1DsjoiGPR6/jrAQJZJihvLr7OTzEkD+iXJ+538HFg2+vxBOd4Wfq+ibwYS1UQQ==  qz-tray.js:35:50
11:10:38.175 Signature for call lz0NQ/8qUSINygWxtb/DmevYdC+Ap8FnqdeeCir6UyQq5fWW3XkUMR9H0GG3MERJRs1bnjSWzaIuS81+ySDBH0ijvry56oydKtLoRGbKh3jWuKLdDF1wkJ8ZTGG3CUH1TU2GEBcnxysRUYK6d8pr62IIIUUELrpITlv+gr8LpjT5GIxdHOn+sSHfm94VIFVWtLQ+4oYTyCmwyP17hY1CTIdZLlkpbMIxoy54Q0PTCWfdIloqc8soYc1cWW3OPqSFHwikD9OiwcTpoViPNkHS6kMx7r1GR518gDs94sNGKkKCiWJE8fjsPDXenp3QKSnakLVjdtYB6hCDQybk8n5V9g==  qz-tray.js:35:50
11:10:38.302 Received response from websocket Object { uid: "khsbjs", result: "2.0.4" }  qz-tray.js:35:50
11:10:38.304 Received response from websocket Object { uid: "kvj4qy", result: "EPSON TM-T88IV Receipt" }  qz-tray.js:35:50
11:10:38.306 <strong>Found:</strong> EPSON TM-T88IV Receipt  qz-tray.js:1621:8
11:10:38.308 Preparing object for websocket Object { call: "print", promise: Object, params: Object, signature: undefined, timestamp: undefined }  qz-tray.js:35:50
11:10:38.387 Signature for call IAQZLtDaGnPx9Uy6xRC6mvPKBm+oZFXuonbH2smjE/B/gLSQ91Z8rPtq5b6LbUEOcia6pVQ3G5+HQGAamWrqW4WgJaNo3JO+ziZdNmQQDiUJ+Niyq9rPcTeHfqgyFk+VZRuZaP2Wgl259UPTEaSeiF1+WeKGNKxKAv3ZG4YrzuNPEIVz+oA6dzMg7fyWgbdj9groRFQK9l+O83wpBU6B1ZjPgHkp0rbJWzgmyKCCNDKltHi6/9VPPcQ5DfZnzbEHWGxWIbnYBr/5sJSQevFNyg7r4zOOc+fal64QF/Bifq/1L19pmFOe1TpwFRV3iEVR8XdAmqtpBVj2oloRu+f+4w==  qz-tray.js:35:50
11:10:38.723 Received response from websocket Object { uid: "m2lxb3" }  qz-tray.js:35:50

Thank you.

        




Tres Finocchiaro

unread,
Jul 27, 2017, 3:42:34 PM7/27/17
to Mayank Chauhan, qz-p...@googlegroups.com
Can you please provide code to reproduce?

Preferably as snippet that can be used inside the sample.html file.

--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages