Vereb_Laszlo | 2022-06-17 13:33:06 UTC | #1
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!
Jerome.Saint-Marc | 2022-06-17 13:44:14 UTC | #2
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,
Vereb_Laszlo | 2022-06-17 14:27:37 UTC | #3
Sorry it was a typo on my part, the actual method used is getConversationsEmailMessage.
Jerome.Saint-Marc | 2022-06-27 11:32:10 UTC | #4
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,
Vereb_Laszlo | 2022-06-27 11:32:39 UTC | #5
Thanks. Enabling logging to a file helped locate a possible issue in our code.
Ebenezer_Osei | 2022-06-29 13:41:45 UTC | #6
This post was migrated from the old Developer Forum.
ref: 15206