Errors when running Platform add command

I’ve just created a new Ionic project, but when i try adding Android platform by running this command:
ionic cordova platform add android , it asks me to enter my ionic platform credentials and finally prints this result :

Run ionic login --verbose directly and post what it returns.

Also post your ionic info output please.

ionic login --verbose prints the same result, while ionic info prints

    @ionic/cli-utils  : 1.10.2
    ionic (Ionic CLI) : 3.10.2
global packages:
    Cordova CLI : 7.0.1 
local packages:
    @ionic/app-scripts : 2.1.3
    Cordova Platforms  : android 6.2.3
    Ionic Framework    : ionic-angular 3.6.0
    Android SDK Tools : 24.1.2
    Node              : v6.11.1
    npm               : 3.10.10 
    OS                : Linux 3.13

ionic info looks fine.

Are you behind some kind of corporate proxy?
Can you connect your computer to another network (maybe tethering from your mobile device) and try again?