node-trello
node-trello copied to clipboard
Fix for "We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner."
As of 3/12/24 Trello no longer allows body parameters to be sent in GET requests, the body must be blank, if you do you'll receive the following error:
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
To fix:
if (method === "GET") {
options.json = true; // this was the fix for me
}
request[method === 'DELETE' ? 'del' : method.toLowerCase()](options, function (err, response, body) {
....