alexkvak / teamcity-slack

TeamCity Slack plugin
MIT License
124 stars 23 forks source link

Error "Param oauthKey is missing" when saving the configuration #44

Closed mcagno closed 6 years ago

mcagno commented 6 years ago

I'm having trouble in configuring the plugin in TeamCity: I inserted all the parameters required included the OAuth Access token, but when try to save, it returns a message "Param oauthKey is missing". Is there any additional configuration to do?

alexkvak commented 6 years ago

Could you provide the version number and settings page screenshot?

mcagno commented 6 years ago

Sure: The version of the Slakc plugin is 1.1.8. TeamCity version: 2017.2.4 (build 51228) 2018-08-30 at 13-42-55 2018-08-30 at 13-41-37

alexkvak commented 6 years ago

I guess you have the same problem as here #1 Could you try the solution from there?

mcagno commented 6 years ago

I've just tried the solution from there, but unfortunately the same message appears

alexkvak commented 6 years ago

What is the length of you OAuth access token?

mcagno commented 6 years ago

It's 55 characters long and it's exactly the "Bot User OAuth Access Token" from the page OAuth & Permissions of the Slack app

alexkvak commented 6 years ago

Did you install your application into workspace?

mcagno commented 6 years ago

Yes I did

mcagno commented 6 years ago

How can I provide you more elements to investigate?

alexkvak commented 6 years ago

You can provide your oauth token and then revoke it :) I've just added link to my twitter

mcagno commented 6 years ago

No problem, here is it xoxb-408094420741-427404933703-Kl7OFJYY2k0t0hWB8YNQsMS7. Please tell me when you've finished so I'll revoke it

alexkvak commented 6 years ago

I've just successfully saved your token and sent the probe notification to general channel.

mcagno commented 6 years ago

I've just checked and I've received the notification on the channel. Maybe it could be a bug on my version of TeamCity: which version of TeamCity have you used?

alexkvak commented 6 years ago

I doubt the problem is in version. My version is 2018.1.2. Please check your Server URL on Administration -> Global Settings page

mcagno commented 6 years ago

I've checked with a fresh install of TeamCity 2018.1.2 and it's working with the given token. I've just upgraded my official installation of TeamCity and it still doesn't work and I don't know why, can you give me some suggestion on how to investigate it?

mcagno commented 6 years ago

@alexkvak I've finally found the cause of my problem, that was a wrong of the server not correctly targeting the server address after we moved to https. Thank you for the support!