Lujeni / matterllo

Simple integration between Trello and Mattermost: send Trello activity notifications to Mattermost channels
MIT License
86 stars 25 forks source link

Mattrello can`t log in #30

Closed vladislav121 closed 7 years ago

vladislav121 commented 7 years ago

Hello,

The keys token and API added, and matterllo can't get access to trello (see screenshot). in console error

unable to display board :: invalid key at https://api.trello.com/1/members/me/boards/?filter=all (HTTP status: 401)

in web

invalid key at https://api.trello.com/1/members/me/boards/?filter=all (HTTP status: 401)

In the environment there are variables TRELLO_APIKEY and TRELLO_TOKEN.

How to be and what to do ?

PS thanks in advance

Lujeni commented 7 years ago

Hello @vladislav121,

Which install: heroku ? own server ?

You need to be login on Trello and follow this link to generate key and token.

vladislav121 commented 7 years ago

Hello @Lujeni ,

Own server (Centos 7 minimal).

The key and token generated in the system variables added.

2017-01-18_22-16-41

Lujeni commented 7 years ago

Can you try with the library directly pls and gave me the output ? https://github.com/sarumont/py-trello

from trello import TrelloClient 
trello_client = TrelloClient(api_key=TRELLO_APIKEY, token=TRELLO_TOKEN)
trello_client.list_boards()
Lujeni commented 7 years ago

@vladislav121 I modify the code to display a better error (wich display the token and co). Feel free to re-open the issue with your error.

test