Skip to content
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

Invalid Auth #119

Closed
Deams51 opened this issue Feb 28, 2021 · 13 comments
Closed

Invalid Auth #119

Deams51 opened this issue Feb 28, 2021 · 13 comments

Comments

@Deams51
Copy link

Deams51 commented Feb 28, 2021

Just started to set up a new TeamCity server.
I've followed the setup in the Readme (creating a classic app...).
But when trying to set it up on Teamcity, I am getting an invalid_auth error.

Same error when trying https://slack.com/api/rtm.start?token=xoxp-my-long-token-here

Version: 1.8.1

@Black-Stork
Copy link

Yeah, having the same issue

@constantnoise
Copy link

I am also having the same issue. Trying to connect an existing TeamCity to a new copy of the app.

@alexkvak
Copy link
Owner

alexkvak commented Mar 2, 2021

It seems that Slack has deprecated some APIs

https://api.slack.com/changelog
Itiviti/simple-slack-api#279

@alexkvak
Copy link
Owner

@constantnoise @Black-Stork @Deams51 I've replaced Itiviti/simple-slack-api with official library from Slack team and need some time to test the plugin. Basic functionality works fine. Even new bot apps, not only classic.

If you interested in testing I can publish beta version and you can use it.

@constantnoise
Copy link

That would be great, thanks!

@nikolaigauss
Copy link

I wouldn't mind re-configuring the Slack integration with the APIs on my test platform as well, do please include me on the beta if this means a meaningful test :).

@alexkvak
Copy link
Owner

@nikolaigauss @constantnoise I’ve just published beta.1 version https://github.com/alexkvak/teamcity-slack/releases/tag/v2.0.0-beta.1

I tested simple positive cases – the plugin posts notifications to the channels, stores the configuration in Administration section.

I have doubts if the proxy works. And if there is an error on configuration page – it does not shown.

Take a look at not permission list in readme https://github.com/alexkvak/teamcity-slack/blob/release/2.0.0/README.md

@constantnoise
Copy link

I've tested this now. It appears to work. Pasting in the OAuth access token, and hitting Submit resulted in no errors. I have only tested using the "Try it" button, and it sends to the correct channel. Will verify with daily and continuous build notifications. Thanks!

@constantnoise
Copy link

constantnoise commented Mar 12, 2021

In further testing, notifications only work when I manually press "Try It" from the build, Slack menu. Notifications are not triggering automatically. Everything appears to be setup correctly. The per build settings haven't changed since before. Also, unsure if it's related, when I do click on the Build, Slack menu, the loading icon and text appear, and don't disappear.
image
N.B. This is with a Legacy Bot/Classic App.

@alexkvak
Copy link
Owner

Just checked your case, it works fine. I see Started and Succeeded status.

Could you check teamcity-server.log (/admin/admin.html?item=diagnostics&tab=logs&file=teamcity-server.log)

@constantnoise
Copy link

Thanks alexkvak! False alarm. I'm new to TC and Slack, In my haste I hadn't installed the app to the workspace!

@alexkvak
Copy link
Owner

alexkvak commented Mar 15, 2021

Just published beta.4 version. In previous versions private messages should not work.

@alexkvak alexkvak added this to the 2.0.0 milestone Mar 19, 2021
@alexkvak
Copy link
Owner

2.0.0 stable release, this issue can be closed. Thanks for help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants