Ionic git remote or ionic link results in error


#1

Hi,

When I run ionic git remote or ionic link, it results in error with “API request was successful, but the response format was unrecognized.”"
But the response on console looks all right.

Global ionic info
cli packages: (/usr/local/lib/node_modules)

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

System:

Node : v8.10.0
npm  : 5.8.0
OS   : macOS High Sierra

Misc:

backend : pro

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

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

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.10
Cordova Platforms  : android 7.0.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.10.0
npm               : 5.8.0
OS                : macOS High Sierra
Xcode             : Xcode 9.2 Build version 9C40b

Environment Variables:

ANDROID_HOME : /Users/hari/Library/Android/sdk

Misc:

backend : pro

My thought is the ssh keys . But when I try to upload ssh keys from my bitbucket account
using ionic ssh setup or via the ionic dashboard I get the following error

Request: POST https://api.ionicjs.com/users/1481451/sshkeys
Response: 422
Body:
{ link: null,
message: ‘An error occurred while validating the request parameters.’,
type: ‘UnprocessableEntity’,
details:
[ { errors: [Array], error_type: ‘invalid’, parameter: ‘pubkey’ } ] }