Batal
Batal

Reputation: 11

Platform.sh CLI Login Fails with HTTP 500 Error and Symfony Console Error

I’m encountering issues while trying to log in to Platform.sh using the command-line interface (CLI). When I run platform login, the CLI opens a URL in my browser (http://127.0.0.1:5000), but the browser displays an error: “This page isn’t working. 127.0.0.1 is currently unable to handle this request.”

The CLI output is:

Opened URL: http://127.0.0.1:5000
Please use the browser to log in.

Help:
Leave this command running during login.
If you need to quit, use Ctrl+C.

If I try to run platform create without logging in, the CLI prompts me to log in. When I confirm, I receive a fatal error:

Fatal error: Uncaught Error: Class "Symfony\Component\Console\Event\ConsoleErrorEvent" not found in phar://C:/Users/Макар/AppData/Local/Temp/platformsh-cli-8.2.26-4.22.0/phar-4.22.0/vendor/symfony/console/Application.php:1027
Stack trace:
#0 phar://C:/Users/Макар/AppData/Local/Temp/platformsh-cli-8.2.26-4.22.0/phar-4.22.0/src/Application.php(429): Symfony\Component\Console\Application->doRunCommand()
#1 phar://C:/Users/Макар/AppData/Local/Temp/platformsh-cli-8.2.26-4.22.0/phar-4.22.0/vendor/symfony/console/Application.php(255): Platformsh\Cli\Application->doRunCommand()
#2 phar://C:/Users/Макар/AppData/Local/Temp/platformsh-cli-8.2.26-4.22.0/phar-4.22.0/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun()
#3 phar://C:/Users/Макар/AppData/Local/Temp/platformsh-cli-8.2.26-4.22.0/phar-4.22.0/bin/platform(37): Symfony\Component\Console\Application->run()
#4 C:\Users\Макар\AppData\Local\Temp\platformsh-cli-8.2.26-4.22.0\phar-4.22.0(10): require('...')
#5 {main}
  thrown in phar://C:/Users/Макар/AppData/Local/Temp/platformsh-cli-8.2.26-4.22.0/phar-4.22.0/vendor/symfony/console/Application.php on line 1027

If I run 'platform login -vvv', CLI output is:

DEBUG Determined CA bundle path: C:\Users\28E4~1\AppData\Local\Temp/platformsh-cli-8.2.26-4.22.0\php\extras\cacert.pem 
DEBUG Using Docker credential helper for session storage 
DEBUG Loading session Starting local web server with command: C:\Users\28E4~1\AppData\Local\Temp\platformsh-cli-8.2.26-4.22.0\php\php.exe
-dvariables_order=egps -S 127.0.0.1:5000 -t "C:\Users\user\.platformsh/oauth-listener"
# Running command: start "" "http://127.0.0.1:5000" Opened URL: http://127.0.0.1:5000 Please use the browser to log in.

Help:   Leave this command running during login.   If you need to quit, use Ctrl+C.

I’ve tried:

Checking if port 5000 is in use (it doesn’t seem to be). Using a different browser. Disabling browser extensions. Temporarily disabling my firewall. I am using Windows. I am trying to deploy a Django project.

Any suggestions on how to resolve this login issue and the subsequent Symfony console error?

Upvotes: 1

Views: 34

Answers (0)

Related Questions