服务器1012系统改密码,来自个人服务器的NSURLErrorDomain错误-1012

这是我得到的错误:

HTTP. GET Sync error from http:/ **** local: 8000/v1/apps / **** / devices / **** / Service lastUpdate = 1399652941: Error Domain = NSURLErrorDomain Code = -1012 "The operation couldn't be (NSURLErrorDomain error -1012.) completed. "UserInfo = 0x178079340 {NSErrorFailingURLStringKey=http://****.local8000/v1/apps/****/devices/****/service?lastUpdate=1399652941, NSUnderlyingError 0x170253bf0 = "The operation couldn't be completed (error -1012 kCFErrorDomainCFNetwork.)." NSErrorFailingURLKey = http:// **** local. 8000/v1/apps / **** / devices / *** * / service? lastUpdate = 1399652941}

我不明白为什么我有这个错误,特别是因为网络调用我的服务器没有。我对用户一无所知。

我会自动执行所有操作,并生成用户ID并且是唯一的。

有人帮我吗?

编辑:

这是一种GET方法,我尝试在其中输入实现OAuth2的服务器资源。

在我的应用程序中,我有标题或服务器提供的令牌。

/ / Perform request asynchronously or not

if ( self.async ) {

self.connection = [ NSURLConnection connectionWithRequest : request delegate : self ] ;

Else { }

NSURLResponse * response = nil ;

[ self.data appendData : [ NSURLConnection sendSynchronousRequest : request

returningResponse : & response

error: error] ] ;

if ( [ self.data length] > 0 && * error == nil) {

NSLog ( @"HTTP : Sync GET response from% @ :% @" ,

url,

[[[ NSString alloc] initWithBytes : [ self.data bytes ]

length: [ self.data length]

encoding: NSUTF8StringEncoding ] autorelease ] ) ;

return self.data ;

Else { }

NSLog (@"HTTP : GET Sync error from% @ :% @" , url, * error ) ;

}

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值