Hello im new to working on zebra printers, im using javascript and browser print sdk. So im working on browser.
When i try to access printer status or send zpl file, both writer and read services returns 500 and
Failed to write to device: Unauthorized device detected
this message. How can i authenticate my device for printer.
Thank you for help
3 Replies
When using the Browser Print SDK, please be sure that the JavaScript code is hosted on a webserver and accessed through HTTP or HTTPS via a browser. If the JavaScript is opened in a browser from a local folder, we may see various issues. When you open the webpage of the JavaScript in a browser the very first time, please click on the Yes button to grant the access to the printers from the domain.
Thanks for reply but localhost:8080 is in accepted hosts list but still getting same error when i tried read/write.
Make sure to use the supported browser, such as Chrome, for the Browser Print. You can also take a look at the logs for the errors for debugging. Logfile location: C:\Users\username\AppData\Local\Zebra\BrowserPrint\log.txt (Windows) or ~/.Zebra/BrowserPrint/log.txt (MacBook)