dblock / slack-sup

Slack bot that generates fresh triads of team members to meet every week in an informal standup, or S'Up.
https://sup.playplay.io/
Other
19 stars 9 forks source link

Access denied with correct access token #100

Closed frederike-ramin closed 2 years ago

frederike-ramin commented 2 years ago

Hi there, first of all: thanks for the tool, it's helping my team greatly. 👍 I just have a problem accessing my team's data via the API. Not sure if this is an error with the API or the way I'm using it, though. I turned on API access (set api on) and generated a new access token (rotate api token). The bot gave me the following output:

Team data access via the API is on with a new access token . https://sup.playplay.io/api/teams/

With exactly these values I executed the following command (as described in API.md): curl -H "X-Access-Token:<TOKEN>" "https://sup.playplay.io/api/teams/<ID>" | json_pp and got a 401 Access Denied error.

Am I using it wrong? Is maybe the old token displayed in the bot's message that is no longer valid? Help would be much appreciated. :)

dblock commented 2 years ago

What's your team name/ID? Feel free to email me to dblock at dblock dot org if you don't want that to be public.

dblock commented 2 years ago

This was a real bug. Fixed in https://github.com/dblock/slack-sup/commit/aa14c0af1467b80e1d43ff306b8856f555d74269.