Chetan Chauhan
Chetan Chauhan

Reputation: 82

Not able to delete yammer comment using powershell

$url= "https://www.yammer.com/api/v1/messages/‍4234234234"

Invoke-WebRequest -Uri $url -Method Delete -Headers $UserHeaders

This gives me below error on powershell

Invoke-WebRequest :

This 500 error rarely happens, but even Yammer’s https don’t deliver sometimes. The team’s working on it. In the meantime, go to Yammer. At C:\Chetan\codes\test2.ps1:32 char:9 + Invoke-WebRequest -Uri $DeleteYamComment -Method Delete -Head ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Upvotes: 0

Views: 222

Answers (1)

Ryan Bolger
Ryan Bolger

Reputation: 1295

An HTTP 500 error indicates there was a problem on the server side that you as the caller have no control over. The error text the Yammer API returned says as much. There's likely nothing you can do until the Yammer team fixes their servers.

Upvotes: 0

Related Questions