Jopyth / MMM-Trello

This an extension for the MagicMirror. It provides a very simple Trello integration, by displaying cards in a list.
54 stars 25 forks source link

403 error #35

Open greedyvegan opened 8 months ago

greedyvegan commented 8 months ago

followed every step and landed this

Screenshot 2024-04-01 at 3 18 58 PM
Wdave40 commented 7 months ago

I have that too. Did you resolve it?

TrueSolara commented 7 months ago

My setup worked three months ago, but now I'm getting the same.

Jopyth commented 7 months ago

I also saw this error. Unfortunately, I do not have time to continue the development of this module in the foreseeable future. I have disabled my Trello module on our MM², as we did not use it a lot anymore.

It seems Trello has changed their API access key structure from what I can see here. Maybe this is the reason?

If someone wants to continue developing this module, let me know. I could archive this repository and link to their updated version.

Wdave40 commented 7 months ago

Thanks Jopyth. Wish I had the skills. If someone does pick it up please message on here. I'd love to get it working again.

benjaminflessner commented 7 months ago

Per https://developer.atlassian.com/cloud/trello/changelog/ as of March 12, 2024, GET requests will no longer work with content in the body.

Since https://github.com/adunkman/node-trello is also defunct, I have (for now) just gone into node_modules/node-trello/lib/node-trello.js and modified line 83:

  else {
    options.json = true; // tells request to return json
    // options.json = this.addAuthArgs(this.parseQuery(uri, args));
  }

~That gets me past the 403. (I'm still getting undefined for my card display; but I'm still playing around with this module)~

Instead of commenting out the line; just set options.json = true; and things seem to work again! Without it, the body is returned as a string, and the module cannot process it.