Zebra printer issue thru QZ Tray

430 views
Skip to first unread message

Pawan Kumar Upadhyay

unread,
Sep 17, 2021, 9:42:45 AM9/17/21
to qz-p...@googlegroups.com

Dear Team,

 

We are using QZ Tray for printing label (thru Zebra printer - ZPL) from more than 3 years and was working fine. But suddenly we are facing problem from last 1 week. We tried all possible way to resolve but no luck. Need your help to get this issue resolved.

 

We are getting below error while try to print the label in existing Zebra printer:

              logos.am.adsint.biz says

Error:TypeError:_qz.tools.hash is not a function

 

Part of QZ log:

Till now we have tried and no luck:

-          Clear all cache and restarted the system.

-          Uninstalled and installed same QZ version (2.0.0) as well as Java 8.

-          Verified and make sure ‘sha-256.min.js’ is placed on respective location.

-           Re-started application and also make sure license is updated.

 

Please suggest for solution and let us know if any other detail required to evaluate the issue.

So kind of you.

 

Kind Regards,

Pawan Upadhyay

9986188088

Stay safe! Stay healthy!

 




http://www.mindtree.com/email/disclaimer.html

Lite Finocchiaro

unread,
Sep 17, 2021, 9:48:21 AM9/17/21
to Pawan Kumar Upadhyay, qz-print
Pawan:

Have you tried a more recent version of QZ-Tray? 2.0.0 is very old, and we have made many improvements to the software to keep current with changing browser standards.

Which browser is being used?

Looking forward to your reply.

Regards,

Lite

--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/PN0PR01MB54385C7D91DDC8554A7A3251F3DD9%40PN0PR01MB5438.INDPRD01.PROD.OUTLOOK.COM.

Tres Finocchiaro

unread,
Sep 17, 2021, 10:00:24 AM9/17/21
to Pawan Kumar Upadhyay, qz-p...@googlegroups.com
Pawan,

Error:TypeError:_qz.tools.hash is not a function

To elaborate a bit further, since 2.1.1, we bundle the SHA256 hashing algorithm, so you don't need to include it.

If you'd like you can provide your own:


Note, qz-tray.js 2.1.x is fully backwards compatible with QZ Tray 2.0 versions. :)



--

Pawan Kumar Upadhyay

unread,
Sep 17, 2021, 10:16:31 AM9/17/21
to Lite Finocchiaro, qz-print

Hi Lite,

 

Thanks for reply.

 

Yes application have configured 2.0.0 only, so we are not going to change for now. But definitely in future we will work on your suggestion to upgrade.

 

We are using Google Chrome.

 

 

Kind Regards,

Pawan Upadhyay

9986188088

Stay safe! Stay healthy!

 

From: Lite Finocchiaro <lite.m.fi...@gmail.com>
Sent: Friday, September 17, 2021 7:18 PM
To: Pawan Kumar Upadhyay <Pawan.U...@mindtree.com>
Cc: qz-print <qz-p...@googlegroups.com>
Subject: Re: Zebra printer issue thru QZ Tray

 

* This e-mail originated outside of Mindtree. Exercise caution before clicking links or opening attachments *

Tres Finocchiaro

unread,
Sep 17, 2021, 10:22:32 AM9/17/21
to Pawan Kumar Upadhyay, Lite Finocchiaro, qz-print
Yes application have configured 2.0.0 only, so we are not going to change for now. But definitely in future we will work on your suggestion to upgrade.


Pawan Kumar Upadhyay

unread,
Sep 17, 2021, 10:23:05 AM9/17/21
to Tres Finocchiaro, qz-p...@googlegroups.com

Hi Tres,

 

Thank you for response.

We are using 2.0.0 and we are planning to upgrade in 2022. Please suggest, if anything to update or check to resolve this issue.

 

Is there any port to be verified ?

Anything we need to do for UTF-8 encoding, not sure where and what to check. Please suggest.

 

Kind Regards,

Pawan Upadhyay

9986188088

Stay safe! Stay healthy!

 

From: Tres Finocchiaro <tres.fin...@gmail.com>
Sent: Friday, September 17, 2021 7:30 PM
To: Pawan Kumar Upadhyay <Pawan.U...@mindtree.com>
Cc: qz-p...@googlegroups.com
Subject: Re: Zebra printer issue thru QZ Tray

 

* This e-mail originated outside of Mindtree. Exercise caution before clicking links or opening attachments *

Pawan,

Tres Finocchiaro

unread,
Sep 17, 2021, 10:29:33 AM9/17/21
to Pawan Kumar Upadhyay, qz-p...@googlegroups.com

Anything we need to do for UTF-8 encoding, not sure where and what to check. Please suggest.


Ah, yes.  The version of sha-256 that 2.0 uses must have UTF encoding enabled on the page as well.

Please use the 2.0 sample linked below as a baseline for 2.0 issues.  We've simplified this greatly in the newer 2.1 API.  This newer 2.1 API is fully backwards compatible with QZ Tray 2.0 versions.  If you choose to stay on the old version that is understood, but we dropped support for this version about 9 months ago, so you must use this old version at your own risk. https://qz.io/wiki/Roadmap

Best of regards,

Pawan Kumar Upadhyay

unread,
Sep 17, 2021, 10:31:03 AM9/17/21
to Tres Finocchiaro, Lite Finocchiaro, qz-print

Same dependency/configuration file in deployed application was working fine before 1 week. Do we need to check anything in client system.

 

Can you help me, where to check this dependency?

              <script type="text/javascript" src="js/dependencies/sha-256.min.js"></script>

Is this in client system, if yes then please help with file name.

 

Kind Regards,

Pawan Upadhyay

9986188088

Stay safe! Stay healthy!

 

Part of QZ log:

Till now we have tried and no luck:

-          Clear all cache and restarted the system.

-          Uninstalled and installed same QZ version (2.0.0) as well as Java 8.

-          Verified and make sure ‘sha-256.min.js’ is placed on respective location.

-           Re-started application and also make sure license is updated.

 

Please suggest for solution and let us know if any other detail required to evaluate the issue.

So kind of you.

 

Kind Regards,

Pawan Upadhyay

9986188088

Stay safe! Stay healthy!

 

--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/PN0PR01MB54385C7D91DDC8554A7A3251F3DD9%40PN0PR01MB5438.INDPRD01.PROD.OUTLOOK.COM.

Pawan Kumar Upadhyay

unread,
Sep 17, 2021, 10:44:12 AM9/17/21
to Tres Finocchiaro, qz-p...@googlegroups.com

We have already as below:

<meta charset="UTF-8">

And also :

<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/sha-256.min.js"></script>

Tres Finocchiaro

unread,
Sep 17, 2021, 10:44:22 AM9/17/21
to Pawan Kumar Upadhyay, Lite Finocchiaro, qz-print
Please check the changes you have made in the last week or two weeks.  These files can be cached and surface when the cache expires, being unobvious.

Please test your application locally in private browsing/incognito mode.  You must resolve your own client issues, we do not have the resources to help with basic JavaScript troubleshooting, this must be done by you or your staff.  If you can reproduce locally and are a paying customer, we can continue this conversation at sup...@qz.io, but it must be reproducible on your own machine before we will help.

This sha256 dependency has not changed.  Please use the bundled demo/sample.html from the QZ Tray 2.0 verison as a baseline for testing.  This has the necessary dependency bundled.  The dependency does require a UTF8 header as linked in the previous email because the author of sha256 chose to use UTF8 symbols in his source code.  This UTF8 header is not required with qz-tray.js 2.1, we have fixed these symbols and changed them to standard ASCII characters.

We do expect a basic understanding of JavaScript, HTML and troubleshooting prior to escalation.  This is important because QZ Tray is developed, sold and supported by myself and my brother.  We provide detailed documentation about this product online, which ensures that we can support hundreds of companies worldwide, but this support model does not work if we're spinning our wheels with basic JavaScript issues.  I hope you understand.

Tres Finocchiaro

unread,
Sep 17, 2021, 10:49:14 AM9/17/21
to Pawan Kumar Upadhyay, qz-p...@googlegroups.com
  • Please baseline test against the bundled demo with the QZ Tray version you are using.
  • Please baseline test against your own computer using incognito mode or private browsing mode.
Note, QZ Tray should be 2.0.12 NOT 2.0.0.  2.0.0 is 5 years old.  We cannot help with such an old verison as browsers such as Chrome and Firefox have changed their security policies.

If you must use QZ Tray 2.0, please use QZ Tray 2.0.12 which was released 1 year ago.

If you are a paying customer and require remote assistance, please email sup...@qz.io.

Pawan Kumar Upadhyay

unread,
Sep 17, 2021, 11:01:21 AM9/17/21
to Tres Finocchiaro, qz-p...@googlegroups.com

We have license and did annual renew recently. Is this license include remote assistance?

Tres Finocchiaro

unread,
Sep 17, 2021, 1:22:30 PM9/17/21
to Pawan Kumar Upadhyay, qz-p...@googlegroups.com
Yes, it does.  We can help with making the code work so long as you can reproduce the issue locally.

I'll switch to our official support channel.
Reply all
Reply to author
Forward
0 new messages