ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Ionic2 - Ionic login not working

Open sagivf opened this issue 10 years ago • 26 comments

I get "Error logging in" Tried with two accounts. It works through the web site.

Here are my system details: image

sagivf avatar Apr 28 '16 13:04 sagivf

Any update on this? It's been a while...

sagivf avatar May 03 '16 09:05 sagivf

Hey @sagivf! Sorry about the wait on this! We are looking into this now.So you tried with two accounts, and both did not work and gave the same error correct?

jgw96 avatar May 03 '16 14:05 jgw96

hey @jgw96 yes - both. works via the website. And I think it works without the beta.

sagivf avatar May 03 '16 14:05 sagivf

So I have some good news! The CLI team just took a look at it and it has already been fixed on the repo, but just has not been released yet as they are trying to get a few more things in before a release. I'll keep this issue open and update it as soon as they do the next release that has this fix. Again, so sorry it took so long to get back to you! Thanks for using Ionic!

jgw96 avatar May 03 '16 14:05 jgw96

@jgw96 Much appreciated. By the way it seems that it isn't really an error - ionic upload works. I guess it's just showing an error message by mistake.

sagivf avatar May 03 '16 14:05 sagivf

@sagivf No problem at all! You are exactly right haha, it was a tiny bug that was causing the CLI to say there was an error when there wasn't one.

jgw96 avatar May 03 '16 14:05 jgw96

i am also facing same error, @jgw96 help me in this

nadeemmdsol avatar May 04 '16 13:05 nadeemmdsol

Hello @mnadeemmdsol ! As you can see above, there is currently a bug in the Ionic CLI that is causing it to say login failed even though the login went through fine. It has already been fixed in the repo and will make it into the next release. Thanks for using Ionic!

jgw96 avatar May 04 '16 14:05 jgw96

it is not working for me , when i can expect next release? @jgw96 thanks for quick response.

nadeemmdsol avatar May 04 '16 15:05 nadeemmdsol

I have exactly the same issue. Upload AND Login commands fail, while logging in online does work. And no, upload does not work for me. Help!

nmandyam avatar May 06 '16 04:05 nmandyam

Hi - when can we expect the next release? This same issue is affecting me and holding up a project I am working on currently that has a tight deadline. I need to know if this next release is hours, das, or months away. Thanks.

shr9461 avatar May 08 '16 03:05 shr9461

Hello @shr9461 ! You should still be able to use the upload feature even after the ionic-cli gives you the login failed error. Would you mind running ionic info and posting the output here? Thanks!

jgw96 avatar May 09 '16 16:05 jgw96

Same Here. My info:

`Your system information:

Cordova CLI: 6.1.1 Ionic Framework Version: 2.0.0-beta.7 Ionic CLI Version: 2.0.0-beta.25 Ionic App Lib Version: 2.0.0-beta.15 ios-deploy version: Not installed ios-sim version: Not installed OS: Mac OS X El Capitan Node Version: v4.2.1 Xcode version: Xcode 7.3.1 Build version 7D1014`

Solitaryo avatar May 27 '16 22:05 Solitaryo

Your system information:

Cordova CLI: 6.1.1 Gulp version: CLI version 3.9.0 Gulp local: Local version 3.9.1 Ionic Framework Version: 1.3.0 Ionic CLI Version: 2.0.0-beta.25 Ionic App Lib Version: 2.0.0-beta.15 OS: Node Version: v5.0.0

Yes, -ionic login gives the error "Error loggin in" even if your credentials are correct. But seems like, it is wrong. After that -ionic upload just works.

demirag avatar Jun 11 '16 10:06 demirag

I am also facing same problem

ionic login/upload is not working

F:\MyIonic2Project>ionic login

To continue, please login to your Ionic account. Don't have one? Create one at: https://apps.ionic.io/signup

Email: [email protected] Password: Email or Password incorrect. Please visit https://apps.ionic.io for help.

F:\MyIonic2Project>ionic login

To continue, please login to your Ionic account. Don't have one? Create one at: https://apps.ionic.io/signup

Email: [email protected] Password: Email or Password incorrect. Please visit https://apps.ionic.io for help.

F:\MyIonic2Project>ionic upload WARN: No 'upload:before' gulp task found! If your app requires a build step, you may want to ensure it runs before upload.

No previous login existed. Attempting to log in now.

To continue, please login to your Ionic account. Don't have one? Create one at: https://apps.ionic.io/signup

Email: [email protected] Password: Email or Password incorrect. Please visit https://apps.ionic.io for help. Uploading app.... An error occurred uploading the build: TypeError: Cannot read property 'map' of undefined

TypeError: Cannot read property 'map' of undefined at Object.getDirectUploadKey (C:\Users\Nikhil\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\upload.js:262:18) at C:\Users\Nikhil\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\upload.js:40:21 at _fulfilled (C:\Users\Nikhil\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:787:54) at self.promiseDispatch.done (C:\Users\Nikhil\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:816:30) at Promise.promise.promiseDispatch (C:\Users\Nikhil\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:749:13) at C:\Users\Nikhil\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:509:49 at flush (C:\Users\Nikhil\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:108:17) at _combinedTickCallback (internal/process/next_tick.js:67:7) at process._tickCallback (internal/process/next_tick.js:98:9)

Cannot read property 'map' of undefined (CLI v2.0.0)

Your system information:

Cordova CLI: 6.3.1 Ionic Framework Version: 2.0.0-beta.11 Ionic CLI Version: 2.0.0 Ionic App Lib Version: 2.0.0 OS: Node Version: v6.5.0

jainnikhil781gmailcom avatar Sep 19 '16 11:09 jainnikhil781gmailcom

$ ionic login

Not working for now :(

Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic Framework Version: 2.0.0-beta.11 Ionic CLI Version: 2.0.0-beta.37 Ionic App Lib Version: 2.0.0-beta.20

coderdiaz avatar Sep 19 '16 15:09 coderdiaz

Still failing. can't believe this. Anyone else with this problem?

lluisnieto avatar Mar 07 '17 15:03 lluisnieto

its acctually been working well for a long time. can you add what you get from 'ionic info'?

sagivf avatar Mar 07 '17 17:03 sagivf

Try reinstalling ioni cli. npm install -g ionic. And try to be on a recent(6.x or 7.x) node version and npm version (3.x)

sagivf avatar Mar 07 '17 18:03 sagivf

I had to make a new account to make it work.

lluisnieto avatar May 04 '17 12:05 lluisnieto