Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

GraphResponseHeaders do not exist on type error #39

Copy link
Copy link
@davidmoten

Description

@davidmoten
Issue body actions

Presumably related to #15, when I call:

IBaseMessageRequest request = client //
                    .users(mailbox) //
                    .messages(m.id) //
                    .buildRequest() //
                    .select("IsRead");
Message m2 = request.getMessage();
m2.isRead = true;
request.patch(m2);

I get an error from the api:

Exception in thread "main" com.microsoft.graph.http.GraphServiceException: POST https://graph.microsoft.com/v1.0/users/email@me.com/messages/AAMkADQ3YjdiNWUxLTBmYWQtNDMwYy04Yzc0LTI0MDdmOWQ4NDFjNgBGAAAAAADhHB7R7pc4ToKTjXYdRRRPBwBRvkjTP0udTLdykWPSb0xSAAAAAAEMAADc0RUkpd9gS4SNgTuazIdfAADO-pnhAAA=?$select=IsRead
SdkVersion : graph-java-v1.0.0
Authorization : Bearer <AUTHORIZATION>
{"isRead":true,"id":"AAMkADQ3YjdiNWUxLTBmYWQtNDMwYy04Yzc0LTI0MDdmOWQ4NDFjNgBGAAAAAADhHB7R7pc4ToKTjXYdRRRPBwBRvkjTP0udTLdykWPSb0xSAAAAAAEMAADc0RUkpd9gS4SNgTuazIdfAADO-pnhAAA=","graphResponseHeaders":{"Transfer-Encoding":["chunked"],"null":["HTTP/1.1 200 OK"],"x-ms-ags-diagnostic":["{\"ServerInfo\":{\"DataCenter\":\"Australia SouthEast\",\"Slice\":\"SliceA\",\"Ring\":\"2\",\"ScaleUnit\":\"000\",\"Host\":\"AGSFE_IN_3\",\"ADSiteName\":\"MEL\"}}"],"Cache-Control":["private"],"client-request-id":["1b30c3a5-923e-40ae-84e6-ae98757f8963"],"ETag":["W/\"CQAAABYAAADc0RUkpd9gS4SNgTuazIdfAADPGIrG\""],"Duration":["38.2134"],"OData-Version":["4.0"],"request-id":["1b30c3a5-923e-40ae-84e6-ae98757f8963"],"Date":["Tue, 30 Jan 2018 22:09:26 GMT"],"Content-Type":["application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8"],"responseCode":["200"]}}

400 : Bad Request
HTTP/1.1 400 Bad Request
Transfer-Encoding : chunked
Cache-Control : private
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Australia SouthEast","Slice":"SliceA","Ring":"2","ScaleUnit":"000","Host":"AGSFE_IN_3","ADSiteName":"MEL"}}
client-request-id : 7d4dc465-0479-4c09-94d7-124d4afa37a6
Duration : 63.6952
request-id : 7d4dc465-0479-4c09-94d7-124d4afa37a6
Date : Tue, 30 Jan 2018 22:09:26 GMT
Content-Type : application/json
{
  "error": {
    "code": "RequestBodyRead",
    "message": "The property \u0027graphResponseHeaders\u0027 does not exist on type \u0027Microsoft.OutlookServices.Message\u0027. Make sure to only use property names that are defined by the type or mark the type as open type.",
    "innerError": {
      "request-id": "7d4dc465-0479-4c09-94d7-124d4afa37a6",
      "date": "2018-01-30T22:09:27"
    }
  }
}
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.