MrRefactoring / trello.js

JavaScript / TypeScript library for Node.JS and browsers to easily interact with Atlassian Trello API
https://mrrefactoring.github.io/trello.js/
MIT License
17 stars 6 forks source link

Trying to recreate the getting started example and get a 401 #10

Closed Kyjor closed 3 years ago

Kyjor commented 3 years ago

image

I feel like I am missing something. I got an api key as well as an api token and am getting a 401. The request doesn't even seem like it's trying to use them.

MrRefactoring commented 3 years ago

Hi @Kyjor! Can you please show me network response please?

Kyjor commented 3 years ago

Hi @MrRefactoring that was fast! I assume you mean this? image It says invalid key, but I'm using the value from: https://trello.com/app-key Am I supposed to get it from somewhere else? Thanks!

MrRefactoring commented 3 years ago

I will try to issue a new token for myself and test some API endpoints

Kyjor commented 3 years ago

Thank you!

MrRefactoring commented 3 years ago

It's worked for me.

Do you use key from https://trello.com/app-key and token from here:

Снимок экрана 2021-09-20 в 23 51 49

?

Kyjor commented 3 years ago

Yeah I did. I'm using electron though, and now I'm thinking that might be causing the issue.

MrRefactoring commented 3 years ago

I can try to help you if you send me you electron template (you can send it to my email: mrrefactoring@yandex.ru). And don’t forget remove sensitive stuff 😉

Kyjor commented 3 years ago

Preparing it now. I am grabbing the boilerplate I started with and adding trello.js. Thanks!

MrRefactoring commented 3 years ago

It's strange but on my side, all works correctly:

electron-react-trello.zip

Kyjor commented 3 years ago

That example that you sent worked for me! Thank you!

On Wed, Sep 22, 2021 at 3:25 PM Vladislav Tupikin @.***> wrote:

It's strange but on my side, all works correctly:

electron-react-trello.zip https://github.com/MrRefactoring/trello.js/files/7213252/electron-react-trello.zip

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MrRefactoring/trello.js/issues/10#issuecomment-925250132, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADJFIOZYFWMT64I7EJAKMGDUDIUTBANCNFSM5EMYB4HQ .