Getting email body

Hello!

I am trying to get the bodies of emails with the following java code:
new ConversationsApi().getConversationsMessageMessage(GetConversationsMessageMessageRequest.builder() .withConversationId(*conversationId*).withMessageId(*messageId*).build())
Unfortunately I do not receive any response or logs, and the program is stuck.
When I try to access the /api/v2/conversations/emails/{conversationId}/messages/{messageId} endpoint in Postman at the same time, it returns the expected response.
How can I solve this issue or get some additional information about the cause?

Thanks!

Hello,

The /api/v2/conversations/emails/{conversationId}/messages/{messageId} endpoint corresponds to getConversationsEmailMessage in the Java SDK.

Note that you can find the method related to an endpoint in the SDKs under Api Request section -> Invocations, of each API endpoint.
GET /api/v2/conversations/emails/{conversationId}/messages/{messageId}

Regards,

Sorry it was a typo on my part, the actual method used is getConversationsEmailMessage.

I don't have a C#/.Net dev environment. So nothing much I can say without logs or else.
I'd advise to enable logging in your SDK so you can see what's happening (HTTP Request/Response) which may help you troubleshooting your problem.
SDK Logging

Regards,

Thanks.
Enabling logging to a file helped locate a possible issue in our code.