I'm using Java and newest Graph API 6.11, but can't get MIME message returned

Vedran Kopanja 5 Reputation points
2024-06-13T08:18:20.5766667+00:00

Hi all,

We have just upgraded our Graph API from 5.49.0, to the newest version 6.11.0. I'm now having issues with getting the content or message in MIME format. Before the upgrade it worked fine, but after upgrading it just returns an empty stream.

This is how the request looked for us in 5.49.0:

graphClient.users(mailBox).messages(emailId).content().buildRequest().get();

And now in 6.11.0 it looks like this:

graphClient.users().byUserId(mailBox).messages().byMessageId(emailId).content().get();

The version in 6.11.0 just returns an empty GzipSource which I tried to decompress but the result is the same.

If I use HttpClient to make a "manual" request to the API and append the $value to the message request, it returns the InputStream correctly.

Is this a bug or am I doing something wrong?

Thanks!

Microsoft Security | Microsoft Graph
0 comments No comments
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.