Cloud RestAPI returns Faulted but nothing else
When I submit this POST request to
https://am1.bartendercloud.com/api/actions?Wait=30s&MessageSeverity=Info
I get back an immediate 200, an ID and the status is "Faulted".
If I make a GET call to the supplied URL, I don't get guidance on what went wrong. The printer exists, but if I change it to PDF, it says "RanToCompletion" and I get a PDF. At one point I was able to print from the web console (not via REST call) to this printer and it printed a label.
I suspect Bartender does not like something in my request, but doesn't tell me which line or what. Is there any kind of syntax checker I can use? I realize some times a printer may be off or disconnected, is it possible to tell whether the printer was not connected to the network vs, it was connected and on but had some sort of mechanical issue or maybe ran out of labels?
https://am1.bartendercloud.com/api/actions?Wait=30s&MessageSeverity=Info
I get back an immediate 200, an ID and the status is "Faulted".
If I make a GET call to the supplied URL, I don't get guidance on what went wrong. The printer exists, but if I change it to PDF, it says "RanToCompletion" and I get a PDF. At one point I was able to print from the web console (not via REST call) to this printer and it printed a label.
I suspect Bartender does not like something in my request, but doesn't tell me which line or what. Is there any kind of syntax checker I can use? I realize some times a printer may be off or disconnected, is it possible to tell whether the printer was not connected to the network vs, it was connected and on but had some sort of mechanical issue or maybe ran out of labels?
Thanks,
Ben
{
Ben
{
"PrintBTWAction": {
"Document": "librarian://main/Templates/MySample.btw",
"Printer": "ZZSS-7M555G4.mycompany.com",
"QueueAndContinue": true,
"VerifyPrintJobIsComplete": true,
"Name": "Master Label",
"Description": "Master Label",
"ReturnPrintSummary": true,
"SaveAfterPrint": false,
"PrintToFileFolder": "librarian://main/Output/",
"PrintToFileFileName": "Master_fbd4843a-bb4e-7767-a834-e4e71a3a9855.pdf",
"NamedDataSources": {
"patientOwnerSurname": "SMITH",
"patientName": "RAVEN"
}
}
}
0
-
Ben Pracht
★ BarTender Hero ★
Please note, since this is a public forum, I changed the printer and company details for the sake of privacy. If specifics are needed, I can provide that via email.
0 -
Rob Lipstreu
★ BarTender Hero ★
Did you ever find a resolution on this?
0
Iniciar sesión para dejar un comentario.
Comentarios
2 comentarios