Giter VIP home page Giter VIP logo

Comments (11)

andreiverdes avatar andreiverdes commented on August 17, 2024 3

Ok...so apparently something's going on...
Workaround:

  1. Define an v2 API token with scope View Rooms or View Groups
  2. Use that to configure Administration -> Hipchatnotifier
  3. Go to Projects -> <Sub project> -> Hipchat tab and select your room
  4. Now, when the plugin will try sending notifications it will result with hipchat api error 403
  5. Define a new v2 API token with Scope Send Notifications
  6. Go to Administration -> Hipchat notifier again, and use the Send Notifications scope token
  7. Save
  8. 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.

baqueiro avatar baqueiro commented on August 17, 2024 1

thankyou @andreiverdes

from teamcity-hipchat-notifier.

andreiverdes avatar andreiverdes commented on August 17, 2024

+1

from teamcity-hipchat-notifier.

squalsoft avatar squalsoft commented on August 17, 2024

I have 9.1.6 and it works great.

from teamcity-hipchat-notifier.

parautenbach avatar parautenbach commented on August 17, 2024

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

andreiverdes avatar andreiverdes commented on August 17, 2024

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.

jbwise avatar jbwise commented on August 17, 2024

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.

andreiverdes avatar andreiverdes commented on August 17, 2024

Glad to hear that!

from teamcity-hipchat-notifier.

gsvitak avatar gsvitak commented on August 17, 2024

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

dragon788 avatar dragon788 commented on August 17, 2024

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.

andreiverdes avatar andreiverdes commented on August 17, 2024

Cool @dragon788! Thanks! I would've never thought about this :D

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.