Comments (19)
I just realized that my token has both Send Notification
and View Group
scope. If you only have View Group
, then the connection test will be successful, but it won't be able to send notifications.
So you need both of those scopes for connection test to be successful and be able to assign HipChat rooms to TeamCity projects and then actually send notifications.
FYI it will only be able to access your public rooms and private ones that the user (to whom the token belongs) is invited to.
EDIT: It's actually in the readme. oops
from teamcity-hipchat-notifier.
na így már működik!
from teamcity-hipchat-notifier.
So I was able to get it to connect by adding /rooms onto the end of the URL. I get a connection successful message. However it is not showing any rooms in the drop down when I click to choose them, the list just stays blank even after reloading and refreshing the page.
I've got it completely working now. All I needed was the / on the end on v2.
from teamcity-hipchat-notifier.
Did you ever get a resolution to this at all?
from teamcity-hipchat-notifier.
The URL (in case you're using HipChat Cloud) should be https://api.hipchat.com/v2/
.
from teamcity-hipchat-notifier.
I've tried that but I keep getting "Connection Failed". Are there any specific firewall exceptions that are needed from the server? Or is it just server ==> hipchat on 80?
from teamcity-hipchat-notifier.
I don't think so. Btw the token needed for the connection needs to be assigned to a user, since account-wide tokens don't work with the v2 API (only v1). You need to set up a user (or use an existing one, like your own, if you're an admin, but I have a separate one) for sending notifications, then log in with it and go to https://yourdomain.hipchat.com/account/api
and create an API token with the Send notification
permission level.
from teamcity-hipchat-notifier.
Have you been able to get this working? I've tried everything including the ideas suggest on #52 and #61 and it's still not working.
from teamcity-hipchat-notifier.
@khaljimbo I had a similar issue not too long ago. It ended up being the result of an expired access token.
I highly doubt this is your problem, but it might be worth checking.
from teamcity-hipchat-notifier.
@khaljimbo works for me with the token generated as described in my previous comment.
from teamcity-hipchat-notifier.
I still can't get it to connect, I've created 3 different tokens.
One with every permission
One with only the 3 in the last comment
One with everything from the hipchat administrator.
I still can't seem to get it to connect. Really want to use this enable our CI journey even better.
from teamcity-hipchat-notifier.
It was the url that was wrong , after I fixed it it worked fine
from teamcity-hipchat-notifier.
@stallion2076a can you share your URL?
I am using https://api.hipchat.com/v2
I am using the Octopus Deploy hipchat notifier too which uses the same api url and that is working fine. I am also using TeamCity 2017.1.2
from teamcity-hipchat-notifier.
@khaljimbo Ah! Glad it's fixed. I had to do the same thing as well.
from teamcity-hipchat-notifier.
I can't make it work. I tried it both with https://api.hipchat.com/v2, https://api.hipchat.com/v2/rooms, https://mydomain.hipchat.com/v2/, https://mydomain.hipchat.com/v2/rooms. My TC version is: 2017.2.1 (build 50732)
from teamcity-hipchat-notifier.
@flocsy working for me on the same TC version. The URL should be https://api.hipchat.com/v2/
. Have you got the token set up correctly (as discussed above)? If you get a "Connection successful", you still need to set it up for your TC projects.
from teamcity-hipchat-notifier.
URL: https://api.hipchat.com/v2/, token from https://mysubdomain.hipchat.com/account/api (Send Notification scope with my user) and I get "test connection" (tried before and after save) just gives me "Connection failed". I have no idea what's the problem, there's no indication at all.
When I click on the button it starts an ajax call to (fake host, token :)
That gives a 400 error
from teamcity-hipchat-notifier.
Remek! :D
from teamcity-hipchat-notifier.
OMG, I've spent almost an hour trying to find out why connection is failed.
@BenedekFarkas 's answer is correct, both scopes are required for connection test to be successful! Thanks!
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
- TeamCity 9.1.6 seems to have killed the Notifier HOT 11
- 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
- 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.