stoiveyp / Slack.NetStandard

.NET Core package that helps with Slack interactions
MIT License
41 stars 16 forks source link

Chat.Post returns an error "no_authed" #69

Closed ahocquet closed 2 years ago

ahocquet commented 2 years ago

Hello,

I have an issue with the method Chat.Post() since version 3.13.0 up to 3.14.0-b4. It now fails with the error code "not_authed" whereas the same code works with version 3.12.1.

I set the Bearer token in the HTTP headers as such : image

Is there a new method to set the bot user token to post chat messages ?

Thanks,

Anthony

stevenpears-bjss commented 2 years ago

Thanks for raising this Anthony - there was a change made to the way we used the client internally to the library and it looks like this use case slipped through testing.

Let me pick this up as these versions weren't expected to be breaking changes and I'd rather fix the library than have you change your code for no reason 👍

stoiveyp commented 2 years ago

@ahocquet I've just released 3.13.4 and 3.14.0-beta5 Please let me know if these versions fix the issue you found https://www.nuget.org/packages/Slack.NetStandard/3.13.4

ahocquet commented 2 years ago

I've upgraded to version 3.13.4 and the problem is now gone! Thanks a lot for your help. 👍🙏