web stats
Obtain Error messages of Channel - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2017, 05:25 AM
faoc faoc is offline
Mirth Newb
 
Join Date: Apr 2017
Posts: 13
faoc is on a distinguished road
Unhappy Obtain Error messages of Channel

Hi,

I want to search for each channel, all the error messages. After that i want to reprocess them.
How can i get search all error messages from channel using user API?

Last edited by faoc; 10-16-2017 at 06:12 AM.
Reply With Quote
  #2  
Old 10-16-2017, 03:07 PM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,101
narupley is on a distinguished road
Default

If you're talking about the REST API, the GET /channels/{channelId}/messages endpoint should be able to do what you're looking for.
__________________
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.
Reply With Quote
  #3  
Old 10-18-2017, 06:28 AM
faoc faoc is offline
Mirth Newb
 
Join Date: Apr 2017
Posts: 13
faoc is on a distinguished road
Default

yes, with rest api i can do that. But how can i call rest api with mirth? i'm getting error with https connection...
Reply With Quote
  #4  
Old 10-18-2017, 08:47 AM
faoc faoc is offline
Mirth Newb
 
Join Date: Apr 2017
Posts: 13
faoc is on a distinguished road
Default

I have one destination that is an http sender and i'm trying to call resp api. But i get always and error:

"ERROR: Error connecting to HTTP server [SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target]"

This is an internal network. How can i solve that?
Reply With Quote
  #5  
Old 10-18-2017, 09:57 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,101
narupley is on a distinguished road
Default

Mirth Connect will auto-generate a self-signed certificate that it uses for HTTPS traffic. I'd suggest replacing that with your own company cert if applicable. There's more information in the user guide.

Or, you can accept the security risk and simply add the self-signed cert to your truststore.
__________________
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.
Reply With Quote
Reply

Tags
channel, messages, user 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 07:13 PM.


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