Ionic doctor check Issue (CORS?)


#1

Just trying out the new ionic doctor command, and i got this error when checking my app’s “health”.

In the message it says “not authorized” because of a missing rule. Where is the config file for this rule?

(Deleted ID from IMG)


#2

This would be better placed as an issue at https://github.com/ionic-team/ionic-cli/issues or via the support channels: http://ionicframework.com/support#support


#3

Okay

But what I am really wondering is how the ionic doctor tool works.

The tool has no documentation in the cli docs nor can i find any guides online.

Thanks


#4

No idea. It was added a few versions ago and released “officially” with the last release of the CLI.

Code seems to live here:



#5

Ah, and post your ionic info output please - so we know which version of the CLI is causing this problem for you.


#6

Ah, ionic doctor list might list all the problems it is looking for if I understood the code correctly.


#7

Ah, the website should contain docs on this by the way:


Seems someone at Ionic forgot to deploy these changes.


#8
Helens-iMac:flare-ionic2 Flare$ ionic info

cli packages: (/Users/Flare/.nvm/versions/node/v8.7.0/lib/node_modules)

    @ionic/cli-utils  : 1.15.0
    ionic (Ionic CLI) : 3.15.0

global packages:

    cordova (Cordova CLI) : 7.1.0 

local packages:

    @ionic/app-scripts : 3.0.0
    Cordova Platforms  : ios 4.5.2
    Ionic Framework    : ionic-angular 3.7.1

System:

    ios-deploy : 1.9.2 
    Node       : v8.7.0
    npm        : 5.5.1 
    OS         : macOS High Sierra
    Xcode      : Xcode 9.0.1 Build version 9A1004 

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

#9

Are you logged in to Ionic Pro on the command line?


#10

Yup :slightly_smiling_face:

Helens-iMac:flare-ionic2 Flare$ ionic login
[WARN] You are already logged in as …@…com! Prompting for new
credentials.


#11

Is 6b...4d your correct app id?


#12

Yeah, there is it. I don’t have access to that ionic pro app anymore because I had to change owner for unrelated reasons.

Thanks for the help. It would be nice if you delete the app ID from the thread for security reasons.

Also i saw you published the docs, nice :slight_smile:


#13

Interesting - maybe doctor should catch this in a better way? Seems like the perfect thing it could/should check and handle with a good error message.
I think you should create an issue at https://github.com/ionic-team/ionic-cli/issues about this.

I didn’t do a thing, but someone from Ionic might be reading here :wink:

PS: censored the app id.