dsandor / dymojs

A pure javascript library for printing labels on a Dymo Labelwriter printer from the browser or from nodejs.
129 stars 30 forks source link

getPrinters() returns undefined #5

Closed nordishbynature closed 6 years ago

nordishbynature commented 6 years ago

getPrinters() returns undefined. It seems that the printer could not be read. But the DYMO Label Web Service is running.

dymo library √ should create an instance of the Dymo class

  • should get printers
  • should print a label 1 passing (59ms) 2 pending

I've tested on several computer with differnt operating systems. In every case i've used a Dymo LabelWriter 450 Twin Turbo.

How can I fix the issue?

nordishbynature commented 6 years ago

My solution:

I've replaced the hostname 'localhost' in the constructor (lib/index.js) with 127.0.0.1