Getting Unauthorized Device Error

// Expert user has replied.
S Semavi Özçelik 9 months 1 week ago
192 3 1

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

Please register or login to post a reply

3 Replies

S Steven Si

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.

 

S Semavi Özçelik

Thanks for reply but localhost:8080 is in accepted hosts list but still getting same error when i tried read/write.

 Browser Print Accepted Hosts List
 

S Steven Si

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)

CONTACT
Can’t find what you’re looking for?