Announcement

Collapse
No announcement yet.

Channel Deployment API Routes all return 500

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

  • Channel Deployment API Routes all return 500

    Hi All,

    I am having an issue where all of the channel deployment API POST routes are returning an HTTP 500 status and the following error.

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
    <title>Error 500 </title>
    </head>
    <body>
    <h2>HTTP ERROR: 500</h2>
    <p>Problem accessing /api/channels/_undeploy. Reason:
    <pre> Request failed.</pre></p>
    <hr /><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.3.14.v20161028</a><hr/>
    </body>
    </html>

    This is occurring from the swagger documentation and I am logged into the default admin account.

    API version is 3.5.2

    I would appreciate any guidance you can give me on this!

    Kind regards,
    Ben

  • #2
    Hello,

    before you evoke any operation using the REST API, you need first call the "_login" operation.
    This "_login" operation will return you a cookie "JSESSIONID=xxxxxxxxxxxxxx"
    And then you can call any operation from the REST API passing then this received cookie.
    After you finish call the "_logout" method.

    Hope it clarifies.

    Best Regards
    Best Regards,
    Alex Neiva

    Comment


    • #3
      Hi Alex,

      Thanks for the information.

      I have already incorporated this step into my code, but I am having trouble getting the right content of the body for the POST.

      I have been finding bits and pieces in the forums about needing to POST a <set></set>. This works to un-deploy all of the channels, but I should be able to specify the channel id's in the set to only deploy those, but I can't get the syntax right.

      I have tried

      <set>
      <channel version="3.5.2">
      <id>[channel id here]</id>
      </channel>
      </set>

      but this does not work.

      Kind regards,
      Ben

      Comment


      • #4
        Try this:

        Code:
        <set>
            <string>...</string>
        </set>
        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


        • #5
          Thank you so much!

          Comment

          Working...
          X