Issues Syncing Invoices

Good Afternoon,

I seem to be stuck on an issue here. I have 3 Offline POS systems connected to the same site and on the same network making transactions. 2 of the systems currently have their invoice syncing with no issues. however, one of the systems keeps throwing a request timed out. I thought it was a network issue but after restarting, I can log into frappe/erpnext but whenever i try to sync offline invoices…the same issue still pops up.
Can anyone please assist on this issue?

Regards,
Benjamin

1 Like

@rohit_w Can you check?

Hi @benjamin

Any error in the browser’s console log? How many line items do you have in the invoices?

Hi @Rohit

@benjamin is a colleague of mine .

The client is a supermarket with a high footfall. The affected system has a lot of invoices stuck in it …already showing paid but not syncing

When we try and sync offline invoices on The system it gives a “Request timed out” error.

What can be causing this ? We have no error in the error log list.

What can we check?

Regards

Hi @rohit_w

Please find the console log below

desk.min.js?ver=1521609136.0:1548 POST 504 (Gateway Time-out)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
frappe.request.call @ desk.min.js?ver=1521609136.0:1548
frappe.call @ desk.min.js?ver=1521609136.0:1441
sync_sales_invoice @ VM44:2464
(anonymous) @ VM44:806
dispatch @ jquery.min.js:3
$event.dispatch @ report.min.js?ver=1521609136.0:3020
r.handle @ jquery.min.js:3
desk.min.js?ver=1521609136.0:1548 POST 504 (Gateway Time-out)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
frappe.request.call @ desk.min.js?ver=1521609136.0:1548
frappe.call @ desk.min.js?ver=1521609136.0:1441
set_indicator @ VM44:759
(anonymous) @ VM44:750

Hi @rohit_w

Please find the console log below

desk.min.js?ver=1521609136.0:1548 POST 504 (Gateway Time-out)

send @ jquery.min.js:4

ajax @ jquery.min.js:4

frappe.request.call @ desk.min.js?ver=1521609136.0:1548

frappe.call @ desk.min.js?ver=1521609136.0:1441

sync_sales_invoice @ VM44:2464

(anonymous) @ VM44:806

dispatch @ jquery.min.js:3

$event.dispatch @ report.min.js?ver=1521609136.0:3020

r.handle @ jquery.min.js:3

desk.min.js?ver=1521609136.0:1548 POST 504 (Gateway Time-out)

send @ jquery.min.js:4

ajax @ jquery.min.js:4

frappe.request.call @ desk.min.js?ver=1521609136.0:1548

frappe.call @ desk.min.js?ver=1521609136.0:1441

set_indicator @ VM44:759

(anonymous) @ VM44:750
[/quote]

Hello @rohit_w

Could you point us in a direction to resolve this?

Every time we try to sync offline records the system gives a ¨request timed out¨ error from a particular sales point.

All other sales points are ok

Regards

Request time out means your server taking lot of time to complete the process. Do you have any customization in the sales invoice? How many invoices are stuck in the queue? Approximately how many inline items do you have in one invoice?

I have about 75 invoices in the queue

Average number of line items is 8

We do have some customization on Sales Invoice, but in this case we are not even getting any error on the error log list, just the time out @ the PC side

Regards

Your server not able to respond to your request within the time you have set for timeout, what kind of customizations do you have for the invoice at server side?

Customisations done

  1. To put total basket qty on offline and online invoice
  2. To ensure that once submit is clicked the invoice is printed and a new invoice is automatically created

We are puzzled as to why the time out is only affecting the one system, we have 5 other systems working well.

Regards