This question has been flagged

I am trying to setup the receipt printer and barcode scanner on a posbox-less ubuntu 16.04 workstation.  I am so close to getting it to work but am having a strange problem.  I am able to go to http://posboxless-ip-address:8069/hw_proxy/status and I get the posbox hardware status page and it seems to be recognizing all hardware and is working ok, and it even prints the small receipt showing "PosBox Status" with MAC and IP address.   The problem is, when I open the pos session in a browser and it tries to connect to this hw_proxy it fails with javascript errors.  This is the output of javascript console:


ProxyDevice<.connect/< https://my-odoo-server-ip/web/content/4317-bb79895/point_of_sale.assets.js:261:2251

.Deferred/promise.then/</</< https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:547:678

jQuery.Callbacks/fire https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:541:281

jQuery.Callbacks/self.fireWith https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:546:198

.Deferred/</deferred[tuple[0]] https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:548:31

jQuery.Callbacks/fire https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:541:281

jQuery.Callbacks/self.fireWith https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:546:198

.Deferred/</deferred[tuple[0]] https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:548:31

jQuery.Callbacks/fire https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:541:281

jQuery.Callbacks/self.add https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:542:467

.Deferred/promise.then/</</< https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:547:753

jQuery.Callbacks/fire https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:541:281

jQuery.Callbacks/self.fireWith https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:546:198

.Deferred/</deferred[tuple[0]] https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:548:31

jQuery.Callbacks/fire https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:541:281

jQuery.Callbacks/self.add https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:542:467

.Deferred/promise.then/</</< https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:547:753

jQuery.Callbacks/fire https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:541:281

jQuery.Callbacks/self.fireWith https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:546:198

done https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:937:157

.send/callback https://my-odoo-server-ip/web/content/4283-87d0006/web.assets_common.js:957:15


I'm not really sure what's going on and don't know what else to try.  I have been using the same POS config and server with a raspberry pi posbox up until now without any issues.  Any advice would be appreciated, thank you.


Avatar
Discard
Author

I was able to solve this issue. For some reason, firefox 58.0.2 under Ubuntu was giving the javascript errors even though it works fine on firefox on other systems. I was able to run the odoo POS under chromium-browser for linux with parameter "--allow-running-insecure-content" and it is able to connect to the local PoxBox-less setup and works great. Hopefully this can help out anyone else with a similar setup. -K