I am trying to login on ionic terminal but I can't even my username and password is correct

I am trying to login on my ionic account on terminal but they always display me a error message
Request: POST https://api.ionic.io/login
Response: 422
Body:
{ type: ‘UnprocessableEntity’,
details:
[ { error_type: ‘invalid’,
parameter: ‘password’,
errors: [Object] },
{ error_type: ‘invalid’, parameter: ‘email’, errors: [Object] } ],
message: ‘An error occurred while validating the request parameters.’,
link: null }

even my username and password is also correct

Post your ionic info please.

1 Like

hello my ionic
username shubhamsharma847
email shubhamsharma847@yahoo.com
tell me if need enythink else

That means the output of ionic info on your command line.

1 Like

there output of command ionic info

global packages:

@ionic/cli-utils : 1.1.2
Ionic CLI        : 3.1.2

System:

Node       : v6.10.3
OS         : macOS Sierra
Xcode      : Xcode 8.3.2 Build version 8E2002 
ios-deploy : not installed
ios-sim    : not installed

That looks good. And inside a project folder?

Did you login first with: ionic login ?

1 Like

its first time to login on terminal

inside project folder info is this

global packages:

@ionic/cli-utils : 1.1.2
Cordova CLI      : 7.0.1 
Ionic CLI        : 3.1.2

local packages:

@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-cordova       : 1.2.1
@ionic/cli-plugin-ionic-angular : 1.2.0
Cordova Platforms               : ios 4.4.0
Ionic Framework                 : ionic-angular 3.3.0

System:

Node       : v6.10.3
OS         : macOS Sierra
Xcode      : Xcode 8.3.2 Build version 8E2002 
ios-deploy : not installed
ios-sim    : not installed

I had a same problem and ionic login allow me to log in and after that ionic cordova resources worked. thx