Closed greenrya closed 5 years ago
That's odd! It's possible that there is an issue with the API parameter for this. Just for my sake, what OS and version of PowerShell are you using this with?
Getting this error now, nothing has changed on my side:
Invoke-RestMethod : The service is unavailable. At C:\Program Files\WindowsPowerShell\Modules\O365ServiceCommunications\1.5.12\functions\New-SCSession.ps1:60 char:22
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Invoke-RestMethod : The service is unavailable.
At C:\Program Files\WindowsPowerShell\Modules\O365ServiceCommunications\1.5.12\functions\Get-SCEvent.ps1:79 char:3
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
On Sat, Sep 15, 2018 at 12:57 PM Matt McNabb notifications@github.com<mailto:notifications@github.com> wrote:
That's odd! It's possible that there is an issue with the API parameter for this. Just for my sake, what OS and version of PowerShell are you using this with?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mattmcnabb/O365ServiceCommunications/issues/10#issuecomment-421607860, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQ8r41nsj_5GlilpGRUdWW4M9tV1Hvrvks5ubT94gaJpZM4V4zGa.
I'm seeing the same thing:
It's possible the service is experiencing some issues. I'll see if I can find out what's going on.
Been that way since yesterday :-) I really hopr it comes back. Let me know what you find.
On Mon, Sep 17, 2018 at 10:41 AM Matt McNabb notifications@github.com<mailto:notifications@github.com> wrote:
I'm seeing the same thing:
[image]https://user-images.githubusercontent.com/6998507/45633489-e28ea180-ba6d-11e8-98fd-252b06dc6390.png
It's possible the service is experiencing some issues. I'll see if I can find out what's going on.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mattmcnabb/O365ServiceCommunications/issues/10#issuecomment-422065248, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQ8r4wH02Dt3xQD9d5UWq82-z8k8aiizks5ub8KfgaJpZM4V4zGa.
Please see #8 - I believe that the original Service Communications API has finally been deprecated. I'll have to look at the effort required to implement this module with the newer API. This was documented in issue #2, but I haven't followed up on it yet. I'm going to merge all these issue together in favor of that one.
For some reason the -PastDays 1 parameter does not appear to be working for me. I am using your EmailAlert sample works great but the PastDays does not seam to function.