aliencube / microsoft-teams-actions

This is a GitHub Actions that sends a message to a given channel in Microsoft Teams
MIT License
79 stars 23 forks source link

Webhook URI not ready #5

Closed kshanovskyi closed 4 years ago

kshanovskyi commented 4 years ago

Hi, after adding this action to pipeline I am always getting such an error:

Time Elapsed 00:00:02.25 Unhandled exception. System.AggregateException: One or more errors occurred. (Webhook URI not ready) ---> System.InvalidOperationException: Webhook URI not ready at Aliencube.GitHubActions.Teams.ConsoleApp.MessageHandler.SendMessageAsync(HttpClient client) in /app/src/GitHubActions.Teams.ConsoleApp/MessageHandler.cs:line 66 --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task1.get_Result() at Aliencube.GitHubActions.Teams.ConsoleApp.Program.OnParsed(Options options) in /app/src/GitHubActions.Teams.ConsoleApp/Program.cs:line 56 at Aliencube.GitHubActions.Teams.ConsoleApp.Program.<>c.<Main>b__11_1(Options options) in /app/src/GitHubActions.Teams.ConsoleApp/Program.cs:line 47 at CommandLine.ParserResultExtensions.MapResult[TSource,TResult](ParserResult1 result, Func2 parsedFunc, Func2 notParsedFunc) at Aliencube.GitHubActions.Teams.ConsoleApp.Program.Main(String[] args) in /app/src/GitHubActions.Teams.ConsoleApp/Program.cs:line 46`

shrabas commented 4 years ago

Got same issue. any plans to fix this?

insearching commented 4 years ago

Hi, after adding this action to pipeline I am always getting such an error:

Time Elapsed 00:00:02.25 Unhandled exception. System.AggregateException: One or more errors occurred. (Webhook URI not ready) ---> System.InvalidOperationException: Webhook URI not ready at Aliencube.GitHubActions.Teams.ConsoleApp.MessageHandler.SendMessageAsync(HttpClient client) in /app/src/GitHubActions.Teams.ConsoleApp/MessageHandler.cs:line 66 --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task1.get_Result() at Aliencube.GitHubActions.Teams.ConsoleApp.Program.OnParsed(Options options) in /app/src/GitHubActions.Teams.ConsoleApp/Program.cs:line 56 at Aliencube.GitHubActions.Teams.ConsoleApp.Program.<>c.<Main>b__11_1(Options options) in /app/src/GitHubActions.Teams.ConsoleApp/Program.cs:line 47 at CommandLine.ParserResultExtensions.MapResult[TSource,TResult](ParserResult1 result, Func2 parsedFunc, Func2 notParsedFunc) at Aliencube.GitHubActions.Teams.ConsoleApp.Program.Main(String[] args) in /app/src/GitHubActions.Teams.ConsoleApp/Program.cs:line 46`

Documentation here https://github.com/marketplace/actions/microsoft-teams-generic is wrong, you should use webhook_uri instead.

justinyoo commented 4 years ago

@shrabas @insearching OMG Thanks for pointing this out! It's typo. Should have been webhook_uri.

justinyoo commented 4 years ago

Thanks @insearching for your PR #6 and #8 Both have been merged.

PMLP-novo commented 2 years ago

Been here trice because I on two different projects have misspelled parameters :) Issues like this brings so much value