wallacepos icon indicating copy to clipboard operation
wallacepos copied to clipboard

webprint is not working when wallacepos is installed in public ip

Open amol-beast opened this issue 7 years ago • 5 comments

I had wallacepos running it in local network with host ips in the range of 192.168.1.*. I am able to print using via WebPrint. But when I installed in the dedicated host (digital ocean droplet) in https, the print is not going through. Even the "Test" utility in the Settings-> Printing -> Receipt Printing ->Connection section is not going through

Context

[provide more detailed introduction to the issue itself and why it is relevant]

Process

  1. Install wallace pos in dedicated server with public ip over https
  2. Install Webprint in local computer and start it
  3. In Settings -> Printing -> Receipt Printing ->Connection Method: Web Print ESCP , Type: Raw, 127.0.0.1:8080 opens, and a list of printer gets populated.
  4. After selecting the Printer, clicking on "Test", The print is not happening
  5. There are no messages in Console.

Expected result

The receipt print should happen via Webprint, even if wallacepos is running from public ip

Current result

The receipt print is not happening via Webprint when Wallacepos is running from public ip

Possible Fix

I think it is because the Chrome browser blocking content from https to http. But there are no errors thrown in the Console.

amol-beast avatar Aug 07 '17 12:08 amol-beast

After looking through, I found out the print was not happening due to invalid file path for image logo. After fixing the path, the print was going through

amol-beast avatar Aug 07 '17 12:08 amol-beast

Are you using printing type raw or bitmap?

On 7 August 2017 10:01:11 PM AEST, amol-beast [email protected] wrote:

I had wallacepos running it in local network with host ips in the range of 192.168.1.*. I am able to print using via WebPrint. But when I installed in the dedicated host (digital ocean droplet) in https, the print is not going through. Even the "Test" utility in the Settings-> Printing -> Receipt Printing ->Connection section is not going through

Context

[provide more detailed introduction to the issue itself and why it is relevant]

Process

  1. Install wallace pos in dedicated server with public ip over https
  2. Install Webprint in local computer and start it
  3. In Settings -> Printing -> Receipt Printing ->Connection Method: Web Print ESCP , Type: Raw, 127.0.0.1:8080 opens, and a list of printer gets populated.
  4. After selecting the Printer, clicking on "Test", The print is not happening
  5. There are no messages in Console.

Expected result

The receipt print should happen via Webprint, even if wallacepos is running from public ip

Current result

The receipt print is not happening via Webprint when Wallacepos is running from public ip

Possible Fix

I think it is because the Chrome browser blocking content from https to http. But there are no errors thrown in the Console.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/micwallace/wallacepos/issues/113

-- Sent from my Android device with K-9 Mail. Please excuse my brevity.

micwallace avatar Aug 07 '17 12:08 micwallace

Thanks for the info. I'll reopen this issue until I can get around to patching the underlying bug. The receipt should print without the logo, however it stalls since the script relies on the onload event to continue the printing process.

micwallace avatar Aug 08 '17 09:08 micwallace

The printing type is raw. Thanks

amol-beast avatar Aug 08 '17 13:08 amol-beast

@amol-beast can you share the installation guide for installing wallacepos on localhost on window 10?

Thanks in advance.

Faisal21063 avatar Jun 07 '20 15:06 Faisal21063