-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing to send a message doesnt generate an error #21
Comments
Can't reproduce your error: Send-TeamsMessage -uri $TeamsID -MessageTitle "Foo" -MessageText "Foo ❌ 😀 💩 bar" -Verbose ShowErrors is strictly for Pester usage, Verbose does give you all the details. I would say the TeamsID you provided doesn't exists? What would you expect here? detect the error and display it as a warning? |
Weirdly enough if I remove one or two chars from the webhook URL it throws an error which displays warning
So in your case the 404 error must be non throwing for Invoke-RestMethod. |
Added an option to detect error or failed strings within response from Please let me know if you find out what is the problem on your end? Published new version. |
So I was trying to send a message to test the module
I tried to send a very simple message, nothing arrived, no error.
I searched for Get-Help (see #20 ) and then explored the parameters
I saw
-ShowErrors
I ran with that and still had no errors
I ran with verbose and saw the 404 error
The text was updated successfully, but these errors were encountered: