php-trello-api icon indicating copy to clipboard operation
php-trello-api copied to clipboard

403 deprecated

Open darkvovich opened this issue 2 years ago • 1 comments

Not workin anymore since api updated from Atlassian: https://developer.atlassian.com/changelog/#CHANGE-1459

403 ERROR The request could not be satisfied. Bad request. 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. If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation. Generated by cloudfront (CloudFront) Request ID: m_m-gAKPJn8VCHIvdphdRLMNZi1qeEtLsWejL8-pHnLNgrkYlzZIew=

darkvovich avatar Mar 20 '24 09:03 darkvovich

php-trello-api sends all parameters (too) as body content in GET requests:

https://github.com/cdaguerre/php-trello-api/blob/02413f3ade1275e5a3e4123c1b7a856cdeeeb1ea/lib/Trello/HttpClient/HttpClient.php#L204

I added an if to ignore the body content when the method is GET: https://gist.github.com/xsbr/bf4918814c7a0c9b5c8a4849f442749d

xsbr avatar Mar 26 '24 13:03 xsbr