kanboard-import-trello
kanboard-import-trello copied to clipboard
HTTP request failed! HTTP/1.1 426 Upgrade Required
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.
I've checked in FF developer console, Trello uses HTTP/2. This is likely the cause of the problem.
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/ ...)