Giter VIP home page Giter VIP logo

Comments (19)

BenedekFarkas avatar BenedekFarkas commented on August 17, 2024 3

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.

flocsy avatar flocsy commented on August 17, 2024 2

na így már működik!

from teamcity-hipchat-notifier.

khaljimbo avatar khaljimbo commented on August 17, 2024 1

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.

andyofengland avatar andyofengland commented on August 17, 2024

Did you ever get a resolution to this at all?

from teamcity-hipchat-notifier.

BenedekFarkas avatar BenedekFarkas commented on August 17, 2024

The URL (in case you're using HipChat Cloud) should be https://api.hipchat.com/v2/.

from teamcity-hipchat-notifier.

andyofengland avatar andyofengland commented on August 17, 2024

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.

BenedekFarkas avatar BenedekFarkas commented on August 17, 2024

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.

khaljimbo avatar khaljimbo commented on August 17, 2024

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.

webmastir avatar webmastir commented on August 17, 2024

@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.

BenedekFarkas avatar BenedekFarkas commented on August 17, 2024

@khaljimbo works for me with the token generated as described in my previous comment.

from teamcity-hipchat-notifier.

khaljimbo avatar khaljimbo commented on August 17, 2024

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.

stallion2076a avatar stallion2076a commented on August 17, 2024

It was the url that was wrong , after I fixed it it worked fine

from teamcity-hipchat-notifier.

khaljimbo avatar khaljimbo commented on August 17, 2024

@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.

webmastir avatar webmastir commented on August 17, 2024

@khaljimbo Ah! Glad it's fixed. I had to do the same thing as well.

from teamcity-hipchat-notifier.

flocsy avatar flocsy commented on August 17, 2024

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.

BenedekFarkas avatar BenedekFarkas commented on August 17, 2024

@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.

flocsy avatar flocsy commented on August 17, 2024

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 :)

http://my-tc.example.com:8901/configureHipChat.html?test=1&apiUrl=https%3A%2F%2Fapi.hipchat.com%2Fv2%2F&apiToken=abcdeflwef3efg23ef23ewfvfdsad23wesdf3w3wer32

That gives a 400 error

from teamcity-hipchat-notifier.

BenedekFarkas avatar BenedekFarkas commented on August 17, 2024

Remek! :D

from teamcity-hipchat-notifier.

Funbit avatar Funbit commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.