Ionic Pro Ionic login doesn't work with new created account

But I found out recently new ionic account cannot login with ionic login. Even activated the account via email, I found following error if I tried to login with ionic login:

Request: POST https://api.ionic.io/login
Response: 404
Body: 
{ type: 'NotFound',
  message: 'No user found by that email',
  link: null }

then I tried with my old account. It just work!

It’s quite big problem because I introduced many companies to use Ionic as cross platform technology but it stucks with this problem.

Here my ionic info:

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : 7.0.1 

local packages:

    @ionic/app-scripts : 2.1.3
    Cordova Platforms  : android 6.2.3 ios 4.4.0
    Ionic Framework    : ionic-angular 3.6.0

System:

    Android SDK Tools : 25.2.5
    ios-deploy        : 1.9.1 
    ios-sim           : 6.0.0 
    Node              : v6.9.2
    npm               : 3.10.9 
    OS                : macOS Sierra
    Xcode             : Xcode 8.3.3 Build version 8E3004b

If I remember right,
a moderator indicated this is a known issue and you’re suppose to contact support.

Good luck!

Ionic Pro is a hosted and closed source service, so there is not much we, the community, can help you with. There is a FAQ and common/known issues at https://ionic.zendesk.com/hc/en-us/sections/115003254647-FAQ-Common-Issues You can contact support at http://ionicframework.com/support#support

In your case I think switching the backend to pro in the CLI first before running ionic login might fix it. Steps are described here: https://ionic.zendesk.com/hc/en-us/articles/115011945607-Unable-to-log-in-using-the-CLI

Try the command ionic config get --global

There should be a variable called backend, which is probably set to legacy in your case. You’ll need to set that variable to pro in order to login with a new Ionic Pro account. If the variable is set to legacy, you will only be able to login with an Ionic Cloud account.

I believe that you can set this variable using the ionic config set command. The variable is set automatically if you link to a new app using the ionic link --pro-id <your_app_id> command which is what worked for me.

1 Like

Thank you very much @ajwhtml ! Your solution works like a charm!

For anyone who found same problem like me. Just following these instructions:

  1. In terminal (or command window or powershell on Windows) run ionic config get --global
  2. You might see property: backend: 'legacy'
  3. Run ionic config set backend pro --global
  4. Check with ionic config get --global
  5. now you should see backed: 'pro'
  6. Try your command again, it should work now.
3 Likes