Print task is executed asynchronous even if asyncTimeout is not preset. v1.1.0.1414
Steps to reproduce:
- Turn off the printer
- Send receipt request without asyncTimeout parameter
- After ~ 30 seconds taskId is returned instead of error (same thing happens even if you cancel the request after couple of seconds)
- Turn on the printer
- Receipt is printed
I expect (not stated in documentation) that it should returns error rather than switching to async mode.
We are not able to decline the payment if the printer is offline. I suppose that dirty fix (still not atomic) would be to check the printer status, but that means that we are gonna double the requests sent to erp.net server.