Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(node:26972) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' #16

Open
tonissimo opened this issue Nov 26, 2020 · 4 comments

Comments

@tonissimo
Copy link

I am using DymoJS to print labels on my local machine and I get this error:

(node:26972) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.

I tried installing ssl-root-cas (https://www.npmjs.com/package/ssl-root-cas) but that does not help. I also tried changing NODE_TLS_REJECT_UNAUTHORIZED to '1' in dymojs's index.js but it does not work either.

@cpgb85
Copy link

cpgb85 commented Mar 25, 2021

Same issue here. Ever figure this out?

@tonissimo
Copy link
Author

tonissimo commented Mar 25, 2021

Yes, for me what solved the issue was to put the first line of the XML label on the same line as the opening backtick. (I previously had the first XML line on the next line). I hope it helps!

Screen Shot 2021-03-25 at 3 48 54 PM

@einaraglen
Copy link

einaraglen commented Aug 1, 2021

I did what @tonissimo suggested, and it did not seem to change anything, I then moved the line :

dymo.print("DYMO LabelWriter Wireless", labelXml);

And placed it under the string XML, and that seem to work just fine! it is printing now!

EDIT: and I also changed name of Printer as I am using the Wireless verison

@kardall
Copy link

kardall commented Jan 25, 2022

Yes, for me what solved the issue was to put the first line of the XML label on the same line as the opening backtick. (I previously had the first XML line on the next line). I hope it helps!

Screen Shot 2021-03-25 at 3 48 54 PM

This is the reason that I love github...

Totally a different error message, but I decided to look at what the newest error was since it really hasn't been maintained well. This XML string is what breaks the new 8.7.2+ Drivers...

Was having CORS problems and all that... as soon as I removed the linefeed after the ` the problem resolved itself... amazing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants