Announcement

Collapse
No announcement yet.

Queue a HTTPSender on 500 (or other error)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Queue a HTTPSender on 500 (or other error)

    Good Morning. I'm continuing to test HTTP senders, and attempting queuing by placing my API project in an errant state, which returns a 500 when i hit it with PostMan.

    Mirth throws an error before i can handle anything in the response transformer.

    Is there a way to queue instances like this?

    Error is below.
    Version is 3.4.1.8057
    Channel is attached.
    Thank you so much!


    2017-03-23 08:40:23,440] ERROR (com.mirth.connect.connectors.http.HttpDispatcher: 840): Error executing response transformer for channel Vendor ADT In Port 6661 (24ddf73d-9d07-4dd6-9707-8a0e743fb94f) on destination Map Message For Nurse Call / Send to Nurse Call.
    com.mirth.connect.donkey.server.channel.components .ResponseTransformerException: CHANNEL:
    Vendor ADT In Port 6661CONNECTOR:
    Map Message For Nurse Call / Send to Nurse CallSCRIPT SOURCE:
    responseSOURCE CODE:
    39: }40: eval('importPackage(' + Packages.java.lang.Class.forName(className).getPac kage().getName() + ')');41: }42: }43: function doScript() {44: msg = new XML(connectorMessage.getResponseTransformedData()) ;45: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace(''); } else { default xml namespace = ''; }46: function doTransform() {47: 48: LINE NUMBER:
    44DETAILS:
    TypeError: The content of elements must consist of well-formed character data or markup.
    at 447265cf-a05f-4195-b5aa-a331696ee1d2:44 (doScript)
    at 447265cf-a05f-4195-b5aa-a331696ee1d2:93
    at com.mirth.connect.server.transformers.JavaScriptRe sponseTransformer$ResponseTransformerTask.doCall(J avaScriptResponseTransformer.java:167)
    at com.mirth.connect.server.transformers.JavaScriptRe sponseTransformer$ResponseTransformerTask.doCall(J avaScriptResponseTransformer.java:118)
    at com.mirth.connect.server.util.javascript.JavaScrip tTask.call(JavaScriptTask.java:113)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
    at java.lang.Thread.run(Unknown Source)Caused by: com.mirth.connect.server.MirthJavascriptTransforme rException: CHANNEL:
    Vendor ADT In Port 6661CONNECTOR:
    Map Message For Nurse Call / Send to Nurse CallSCRIPT SOURCE:
    responseSOURCE CODE:
    39: }40: eval('importPackage(' + Packages.java.lang.Class.forName(className).getPac kage().getName() + ')');41: }42: }43: function doScript() {44: msg = new XML(connectorMessage.getResponseTransformedData()) ;45: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace(''); } else { default xml namespace = ''; }46: function doTransform() {47: 48: LINE NUMBER:
    44DETAILS:
    TypeError: The content of elements must consist of well-formed character data or markup.
    at 447265cf-a05f-4195-b5aa-a331696ee1d2:44 (doScript)
    at 447265cf-a05f-4195-b5aa-a331696ee1d2:93
    at com.mirth.connect.server.transformers.JavaScriptRe sponseTransformer$ResponseTransformerTask.doCall(J avaScriptResponseTransformer.java:160)
    ... 6 more
    Attached Files

  • #2
    Sounds like you need to change your data types.
    Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

    Nicholas Rupley
    Work: 949-237-6069
    Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


    - How do I foo?
    - You just bar.

    Comment

    Working...
    X