web stats
Mirth REST API - not processing the message to the next channel - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 12-24-2018, 12:09 AM
santoshjami santoshjami is offline
What's HL7?
Join Date: Apr 2011
Posts: 2
santoshjami is on a distinguished road
Default Mirth REST API - not processing the message to the next channel

I am using Mirth 3.4.2.
Have a simple channel, that has a Source listener and sends it to subsequent Channel Writer.
Posted a HL7 message against Mirth channel using Swagger end point (POST channels/channelId/messages), got a 204 response.

When I look at dashboard, I only see that the message against Source Connector, but it does not get sent to the Destination.
No other errors I see as well.
Only when I open the message on Dashboard and reprocess, it goes to the Destination channel.

Attaching the screen shot of the dashboard for review. What must be stopping the message from sending to the Destination when posting via API?

Santosh Jami
Attached Images
File Type: png MirthEndPoint-Dashboard.png (67.8 KB, 13 views)

Last edited by santoshjami; 12-24-2018 at 12:12 AM. Reason: Attachment
Reply With Quote
Old 01-22-2020, 01:06 PM
hheldenbrand hheldenbrand is offline
What's HL7?
Join Date: Jan 2020
Posts: 2
hheldenbrand is on a distinguished road
Default I am having this exact issue as well

Were you ever able to figure it out?
Reply With Quote
Old 01-29-2020, 08:08 AM
pacmano pacmano is offline
OBX.3 Kenobi
Join Date: Oct 2009
Location: Texas
Posts: 108
pacmano is on a distinguished road

Can you post a screenshot of your source listener?
Mirth 3.8.0 / PostgreSQL 11 / Ubuntu 18.04
Diridium Technologies, Inc.
Reply With Quote
Old 01-29-2020, 10:17 AM
agermano agermano is offline
Mirth Guru
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,110
agermano is on a distinguished road

I believe you have to specify the destinationMetaDataId for each destination that you want to process when posting a message this way. This is the equivalent of clicking the Send Message button in the message browser. The GUI will select all destinations for you by default, but allows you to deselect them before submitting the message.

Not sure how you have your source currently set up, but you probably want to be using an http listener, and post messages directly to the channel (which won't require a mirth admin user) rather than through the Client API.
Reply With Quote

rest api

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 04:58 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation