title: Encountering ErrorIntenarlServerError when creating an event using Graph API
body: <p>I Was able to create an event on a not delegated calendar but failed on the delegated calendar when using this endpoint:</p>
  <blockquote>
  <p><a href="https://graph.microsoft.com/v1.0/me/calendars/%7BcalendarId%7D/events" rel="nofollow noreferrer">https://graph.microsoft.com/v1.0/me/calendars/{calendarId}/events</a></p>
  </blockquote>
  <p>I also tried to put a wrong access token and calendarId on the request just to make sure if I can encounter the same error message but It didn't trigger the issue.</p>
  <p>This is the object we're passing.</p>
  <p><strong>CalendarRequest</strong></p>
  <pre><code>{
      start = new MicrosoftDateTimeZoneRequest() {
          dateTime = dateTimeOffset.ToString(dateTimeFormat),
          timeZone = &quot;Pacific Standard Time&quot;
      },
      end = new MicrosoftDateTimeZoneRequest() { 
          dateTime = dateTimeOffsetEnd.ToString(dateTimeFormat),
          timeZone = &quot;Pacific Standard Time&quot;
      },
      subject = $&quot;{activity.CustomerName} {activity.ActivityName} {activity.ActivityType}&quot;.Trim(),
      body = new MicrosoftItemBodyRequest() { content = activity.Details + (activity.CustomerId &gt; 0 ? (&quot;|&quot; + clientURL) : &quot;&quot;), contentType = &quot;HTML&quot; },
      location = new MicrosoftLocationRequest() { 
          displayName = &quot;Home&quot;
      },
      attendees = new List&lt;MicrosofAttendeeRequest&gt;() {
          new MicrosofAttendeeRequest() {
              emailAddress = new MicrosoftEmailAddressRequest(){address =  &quot;karlo@tapnztest.onmicrosoft.com&quot;, name = &quot;X TAP&quot; },
              type = &quot;resource&quot;
          }
      },
      allowNewTimeProposals = false,
      isOrganizer = true
  }
  </code></pre>
  <p>And this is how I call the endpoint</p>
  <pre><code>var calendarResponse = GetCalendarEvent(accessToken);
  var calendarID = calendarResponse.value.Where(a =&gt; a.owner.address == &quot;test@tapteam.co.nz&quot;).FirstOrDefault()?.id;
  var addCalendarEventRequest = new RestClient($&quot;https://graph.microsoft.com/v1.0/me/calendars/{calendarID}/events&quot;);
  var request = new RestRequest();
  request.AddHeader(&quot;Authorization&quot;, &quot;Bearer &quot; + accessToken);
  request.AddJsonBody(calendarRequest);
  var response = addCalendarEventRequest.ExecuteAsync(request, Method.POST);
  </code></pre>
  <p>Payload</p>
  <pre><code>{
    &quot;subject&quot;: &quot;CC - 1st Meeting Confirmed CC - 1st Meeting Confirmed&quot;,
    &quot;body&quot;: {
      &quot;content&quot;: &quot;test&quot;,
      &quot;contentType&quot;: &quot;HTML&quot;
    },
    &quot;start&quot;: {
      &quot;dateTime&quot;: &quot;2021-02-25T15:30:00.000+13:00&quot;,
      &quot;timeZone&quot;: &quot;Pacific Standard Time&quot;
    },
    &quot;end&quot;: {
      &quot;dateTime&quot;: &quot;2021-02-25T16:00:00.000+13:00&quot;,
      &quot;timeZone&quot;: &quot;Pacific Standard Time&quot;
    },
    &quot;location&quot;: {
      &quot;address&quot;: null,
      &quot;coordinates&quot;: null,
      &quot;displayName&quot;: &quot;Home&quot;,
      &quot;locationEmailAddress&quot;: null,
      &quot;locationUri&quot;: null,
      &quot;locationType&quot;: null
    },
    &quot;attendees&quot;: [
      {
        &quot;emailAddress&quot;: {
          &quot;address&quot;: &quot;karlo@tapnztest.onmicrosoft.com&quot;,
          &quot;name&quot;: &quot;Karlo TAP&quot;
        },
        &quot;proposedNewTime&quot;: null,
        &quot;status&quot;: null,
        &quot;type&quot;: &quot;resource&quot;
      }
    ],
    &quot;allowNewTimeProposals&quot;: false,
    &quot;transactionId&quot;: null,
    &quot;isOrganizer&quot;: true
  }
  </code></pre>