kanboard-import-trello icon indicating copy to clipboard operation
kanboard-import-trello copied to clipboard

HTTP request failed! HTTP/1.1 426 Upgrade Required

Open dtantsur opened this issue 4 years ago • 2 comments

Currently fails with

$ php import.php "<url>" $token $trellokey $trellotoken $trelloboard 1
PHP Warning:  file_get_contents(https://trello.com/1/boards/...): failed to open stream: HTTP request failed! HTTP/1.1 426 Upgrade Required
 in /home/dtantsur/Soft/kanboard-import-trello/import.php on line 43
Unable to parse JSON response, is it valid? Syntax error

Applying the switch to cURL from https://stackoverflow.com/questions/64059867/php-http-426-file-get-contents-vs-curl fixes the issue.

dtantsur avatar Dec 25 '20 16:12 dtantsur

I've checked in FF developer console, Trello uses HTTP/2. This is likely the cause of the problem.

dtantsur avatar Dec 25 '20 16:12 dtantsur

Just removed "https://trello.com/1/board" on line 43 in php file. In command line, wrote the full address of my Trello board (https://trello.com/b/ ...)

ranguisj avatar Jun 21 '22 19:06 ranguisj