Ionic-cli: ionic cordova resources command returns 410 error (CLI v3.20.0 )

Created on 28 May 2018  路  1Comment  路  Source: ionic-team/ionic-cli

Description:
I updated to Ionic CLI v3.20.0 and was unable to upload a build to the App Store via XCode due to alpha channels in my icons.

I ran ionic cordova resources --force and ionic cordova resources ios and both return the following error after prompting me for my Ionic username and password:

Request: POST https://api.ionic.io/login
Response: 410
Body: 
{}

Steps to Reproduce:

  1. Run ionic cordova resources ios.
  2. Enter username when prompted.
  3. Enter password when prompted.
  4. Error message appears.

Output:

$ ionic cordova resources ios --verbose
[DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: '/Users/user/Downloads/my-app', local: false, binPath: 
        '/usr/local/lib/node_modules/ionic/bin/ionic', libPath: 
        '/usr/local/lib/node_modules/ionic/dist/index.js' }
[WARN] You need to be logged into your Ionic account in order to run ionic 
       cordova resources.

Log into your Ionic account
If you don't have one yet, create yours by running: ionic signup

? Email: [email protected]

? Password: [hidden]
Request: POST https://api.ionic.io/login
Response: 410
Body: 
{}

My ionic info:

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

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 7.0.1 

local packages:

    @ionic/app-scripts : 3.1.9
    Cordova Platforms  : android 7.1.0 ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 1.9.2 
    Node              : v8.2.1
    npm               : 5.4.1 
    OS                : macOS High Sierra
    Xcode             : Xcode 9.3.1 Build version 9E501 

Environment Variables:

    ANDROID_HOME : /USers/user/Library/Android/sdk

Misc:

    backend : legacy
triage

Most helpful comment

@zuperm4n Try ionic config set -g backend pro and then ionic login again. You are attempting to login to the old Ionic Cloud backend. This is a bit confusing, my apologies. I need to get CLI 4 out which removes that backend.

>All comments

@zuperm4n Try ionic config set -g backend pro and then ionic login again. You are attempting to login to the old Ionic Cloud backend. This is a bit confusing, my apologies. I need to get CLI 4 out which removes that backend.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chsakell picture chsakell  路  3Comments

rashnk picture rashnk  路  3Comments

zoinkydoink picture zoinkydoink  路  3Comments

jgw96 picture jgw96  路  3Comments

patwaswapnil picture patwaswapnil  路  3Comments