Comments (11)
Ok...so apparently something's going on...
Workaround:
- Define an v2 API token with scope
View Rooms
orView Groups
- Use that to configure
Administration -> Hipchat
notifier - Go to
Projects -> <Sub project> -> Hipchat
tab and select your room - Now, when the plugin will try sending notifications it will result with hipchat api error 403
- Define a new v2 API token with Scope
Send Notifications
- Go to
Administration -> Hipchat
notifier again, and use theSend Notifications
scope token - Save
- Run your configurations, it should work now, the plugin can successfully send notifications
Observations:
Test Connection from Administration -> HipChat
notifier is successful only using a token with View Rooms
or View Groups
token
A View Rooms
or a View Groups
token will result in 403 when the plugin will try to actually post something.
I'll post more details tomorrow... I hope this is a temporary fix until I understand the token scopes in hipchat API and why, for example an Administer Group
scope can't be used to get the rooms and post in them as well.
from teamcity-hipchat-notifier.
thankyou @andreiverdes
from teamcity-hipchat-notifier.
+1
from teamcity-hipchat-notifier.
I have 9.1.6 and it works great.
from teamcity-hipchat-notifier.
@jbwise, I will try and test over the weekend, but if it works for @squalsoft, then my guess would be that perhaps you didn't clean out all the working directories when you upgraded your TC installation. If any JAR files from a prior version remains, there is a chance of an ambiguity. Perhaps you could both just confirm which version of the plugin you use? Maybe you use the same TC version, but different versions of the plugin.
from teamcity-hipchat-notifier.
I'm using a fresh TeamCity Professional 9.1.6 (build 37459) and the latest plugin version 0.9.2 - 1fdd36c. Today I'll try to enable debugging and see the logs.
from teamcity-hipchat-notifier.
I hate to admit it, but our error could have been a simple expired token. I just saw the expiration date on the original token was Jan 30, 2016. The new tokens I created did not have the three permissions you listed above, but when I created a token with Send Message, Send Notification, View Room, View Messages, and View Group, the plugin works as expected.
It seems this isn't a bug with either the plugin or the new release, just poor timing of an expiration date and an update. It might be nice to specify in the plugin which permissions are required to work appropriately in the API key.
Thanks, andreiverdes!
from teamcity-hipchat-notifier.
Glad to hear that!
from teamcity-hipchat-notifier.
@andreiverdes I had the same problem with a brand new install. I used your suggestion of creating the token with View Groups and everything started working.
from teamcity-hipchat-notifier.
Thanks for the tip. You can actually give out multiple permissions to an API key in HipChat, just hold Ctrl while selecting (probably Command on Mac). I gave Send Message, Send Notification, View Group, View Room
and it is working great now.
from teamcity-hipchat-notifier.
Cool @dragon788! Thanks! I would've never thought about this :D
from teamcity-hipchat-notifier.
Related Issues (20)
- Unable to get rooms from HipChat HOT 2
- Token Failer HOT 1
- Update documentation for creating tokens HOT 4
- HipChat Tab on Project HOT 1
- Filter depending on parameters
- Failures appearing
- Confused about which token is required HOT 3
- Show validation error for notification message templates HOT 2
- Can't find any rooms in Teamcity HOT 14
- Notifications are not sent HOT 1
- OpenJDK 1.8 and SSL/TLS error HOT 1
- Realtime notification HOT 2
- After saving changes in TeamCity 8.x, page is blank HOT 3
- Can't include artifacts' names in a message. HOT 2
- Don't think I can disable notifications for some of the projects/builds HOT 1
- Add support for @mentions such as @here and @all HOT 2
- Plugin doesn't work with Teamcity 10.0.2 HOT 11
- Connection Failed with Teamcity 2017.1.1 HOT 19
- Add support for Stride
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teamcity-hipchat-notifier.