Skip to content

Update-MgUserEvent throws expeption but is running fine #110

Closed

Description

When running Update-MgUserEvent -UserId X -EventId X -Subject X i get the folling error but subject gets changed as expected.

Update-MgUserEvent : The server responded with an unrecognized response, Status: OK
At line:11 char:10
+          Update-MgUserEvent -UserId $Mail -EventId $_.Id -Subject $_. ...
+          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: ({ UserId = surf...oftGraphEvent }:<>f__AnonymousType513) [Update-MgUserEvent_UpdateExpanded], RestException1
    + FullyQualifiedErrorId : OK,Microsoft.Graph.PowerShell.Cmdlets.UpdateMgUserEvent_UpdateExpanded

Activity

  1. dolauli commented on Feb 19, 2020

    @dolauli

    Please add the switch '-debug' for debug info when running the command. Besides, it is better if the swagger file could be provided.

  2. added this to the 0.5.0 milestone on Mar 26, 2020
  3. peombwa commented on Apr 1, 2020

    @peombwa
    Member

    The OpenAPI document and our docs page say the service should return HTTP status code 204, yet what's returned is a 200 status code. This is what causes the unrecognized response error. cc Xiaogang (@dolauli)

    The same issue is also present in Update-MgUserCalendar. The service returns a 200, yet the OpenAPI doc say it should return a 204.

    Darrel (@darrelmiller) Is there a way to ensure Graph explorer API returns the proper HTTP status code in the OpenAPI docs?

  4. changed the title [-]Update-MgUserEvent thorws expeption but is running fine[/-] [+]Update-MgUserEvent throws expeption but is running fine[/+] on Apr 2, 2020
  5. darrelmiller commented on Jun 8, 2020

    @darrelmiller
    Contributor

    Removing the OpenApi-Dependency label because this needs to be fixed by the PowerShell SDK handling all the status codes and not relying on them being documented in the OpenAPI description.

  6. peombwa commented on Jun 23, 2020

    @peombwa
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions