You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Labelary API supports a GET variant and a POST variant. The GET variant embeds the ZPL in the URL. As a result, the ZPL is truncated if it is very long, because URLs are truncated if they are very long:
If the ZPL is truncated, it will be missing the final ^XZ command, which prevents the label from printing/rendering and returns the following error in Labelary:
ERROR: requested label 0, but there are only 0 labels
Instead of using the GET variant, the code should use the POST variant to avoid this issue:
The Labelary API supports a GET variant and a POST variant. The GET variant embeds the ZPL in the URL. As a result, the ZPL is truncated if it is very long, because URLs are truncated if they are very long:
http://stackoverflow.com/questions/2659952/maximum-length-of-http-get-request
If the ZPL is truncated, it will be missing the final ^XZ command, which prevents the label from printing/rendering and returns the following error in Labelary:
ERROR: requested label 0, but there are only 0 labels
Instead of using the GET variant, the code should use the POST variant to avoid this issue:
https://github.com/sbinkert/ZplPrinter/blob/master/ZplPrinter/js/main.js#L26
The text was updated successfully, but these errors were encountered: