-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] 4.5.0 - API - /channels/{channelId}/messages/{messageId} #6193
Comments
Interesting. Is that any message on any channel? Maybe post your channel and a single message that shows this behavior? De-identified of course. |
Here are the channel and the message. |
I meant the raw message not the XML export of the message. |
Huh? You can export the message from the message viewer. |
Left menu, export results. |
This is what I have already sent in the previous zip. This time I have exported 2 messages. |
Voilà. |
I imported your channel. The XML files in your last post appear to be binary. I sent one of the binary messages to the channel. I called: curl -X GET "https://192.168.66.104:8443/api/channels/06de3020-4852-4679-b4ca-2187b927f856/messages/2?metaDataId=0" -H "accept: application/json" -H "X-Requested-With: OpenAPI" Returns 200 OK with the message. |
I did the same curl. Still getting a 500. 😢
|
Problem here for Nextgen (I don't work for Nextgen), is they won't be able to reproduce your issue. I am not on a container though. Not that it matters. And I don't understand why you would write to / on a container in your first destination. That is another topic of course. |
Yes, probably. Also the exported channel is marked as 4.5.0.
|
For the container, this is just local testing. There is a mount accessible to the container to write in a local folder. |
I removed my post about the bad import, refresh your browser.. |
Anyway, spent enough time on this. If Nextgen can't reproduce it, I doubt your issue will get traction. |
Thank you for your help in this investigation. Maybe Nextgen will have better luck. |
Any update? |
Using MIRTH 4.5.0. I'm trying to get message details in JSON format (this worked before) via API. I got a 500 from the API.
To Reproduce
Expected behavior
It should return the message details because it works when requesting a response in XML format.
The server logs are :
ERROR 2024-05-13 14:17:17.170 [qtp421368307-70] com.mirth.connect.model.converters.ObjectJSONSerializer: javax.xml.transform.TransformerException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[31,28]
2024-05-13 16:17:17 Message: Character reference "�" is an invalid XML character.
Screenshots
Environment
Windows 10, MIRTH 4.5.0
Workaround(s)
No workaround.
The text was updated successfully, but these errors were encountered: