401 Error when uploading to Ionic cloud deploy


#1

401 Error when doing IONIC upload.

i am on IONIC 3.4 and accidentally deleted my site on the cloud. i re created it got a new ID and added it on my modules Cloud Setting Variable like so


const cloudSettings: CloudSettings = {
  'core': {
    'app_id': 'xxxxxxxxxx'
  },
  'auth': {
    'facebook': {
      'scope': []
    }
  }
}

since then every time i use ionic upload it is failing for me

Request: POST https://api.ionic.io/deploy/snapshots
Response: 401
Body:
{ link: null,
message: ‘Authentication failed’,
type: ‘Unauthorized’ }

Can anyone help?


#2

Have you tried running the ionic login command again?
Maybe your session has expired.


#3

Also look at ionic.config.json file, I think there is the app_id written in there…


#4

yes i did the login, same issue


#5

ionic.config.json was the issue thanks Sujan for helping