ios - Parse migration heroku -


guys need parse migration. parse created in heroku , i'm trying call parse via rest

request class xx failed error: error domain=com.alamofire.networking.error code=-1011 "expected status code in (200-299), got 403" userinfo={nslocalizeddescription=expected status code in (200-299), got 403, nserrorfailingurlkey=https://sheltered-**et-*****.herokuapp.com/parse/classes/xx}

something credentials?

i tried several configurations without luck

index.js

var api = new parseserver({   databaseuri: databaseuri || 'mongodb://localhost:27017/dev',   cloud: process.env.cloud_code_main || __dirname + '/cloud/main.js',   appid:  '123456789',   clientkey:'123456789',   masterkey: '123456789' }); 

ios:

//static nsstring * const ksdfparseapibaseurlstring = @"https://api.parse.com/1/";     static nsstring * const ksdfparseapibaseurlstring = @"https://sheltered-hamlet-****.herokuapp.com/parse/";     static nsstring * const ksdfparseapiapplicationid = @"123456789";     static nsstring * const ksdfparseapikey = @"123456789";     - (id)initwithbaseurl:(nsurl *)url {         self = [super initwithbaseurl:url];         if (self) {              [self registerhttpoperationclass:[afjsonrequestoperation class]];             [self setparameterencoding:afjsonparameterencoding];         [self setdefaultheader:@"x-parse-application-id" value:ksdfparseapiapplicationid];         [self setdefaultheader:@"x-parse-rest-api-key" value:ksdfparseapikey];value:ksdfparseapikey];            }          return self;  }  sharedclient = [[sdafparseapiclient alloc] initwithbaseurl:[nsurl urlwithstring:ksdfparseapibaseurlstring]]; 


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -