-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 Error #373
Comments
Having the same problem... |
Having the same problem ... |
Not sure how maintained this project is, but for those who want a workaround, the official API docs here with the requests python library works for me: https://developer.atlassian.com/cloud/trello/rest/ But you have to do your own parsing. |
Response from Trello support:
|
11am: I set up a Discord bot with Trello integration and everything is good It needs to be fixed here, using requests in Python and it started working 🙌 |
Problem is located here. py-trello/trello/trelloclient.py Line 221 in a628d54
When files are not specified in the case for GET calls, it will attempt to convert an empty dictionary to JSON string. Currently, I am monkey patching with the following to get by.
|
Tested and the code worked. This is a quick fix for those who cannot wait for package update. |
This looks to be a permanent change to the API as per: https://developer.atlassian.com/changelog/#CHANGE-1459 Thanks to @jitvimol for the monkey patch -- that did the trick for me! |
FYI : @kaikok is the one who develop the code. (I tested his code) |
Thank you @jitvimol for testing out the fix and the attribution! Glad that it was useful to everyone here. |
Monkey patch from @jitvimol worked for me. Just be careful, when you import only part of py-trello module like me by |
Not fully tested but just wondering if it might be an idea that the library uses its own Far from properly tested and just throwing it out there in case it's of use (and might just be a possible alternative monkey patch).
Then initialise the client as (although TrelloSession() would become the default)
|
For personal needs, I have forked this repository and merged two pending PRs into the new repository. As a temporary solution, I have also uploaded the new package to Pypi. You can download the fixed py-trello with this command: I hope this helps someone in need. |
BTW it does not support 2.7 / didn't test 3.x but thank for the contribution! |
Hello, I'm getting a 403 error but the site seems to be up and all services are functional on Trello. Not sure if this is a Cloudflare server-side issue with Trello or an API issue.
Recreate the issue with this:
from trello import TrelloClient
TrelloClient(TRELLO_API_KEY).list_boards()
The text was updated successfully, but these errors were encountered: