iOS中的NSURLErrorDomain错误代码-999 [英] NSURLErrorDomain error code -999 in iOS

查看:2882
本文介绍了iOS中的NSURLErrorDomain错误代码-999的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用Corona SDK的Facebook API在我正在Facebook上开发的游戏上发布得分。但是,我遇到了问题。在我第一次尝试发布到Facebook时,我在登录和用户身份验证后收到此错误:

I've been trying to use Corona SDK's Facebook API to post the score on the game I'm developing on facebook. However, I'm having a problem with it. During the first time I try to post to facebook, I get this error after login and user authentication:


NSURLErrorDomain错误代码-999

NSURLErrorDomain error code -999

然后,它不会在Facebook上发布。导致此错误的可能原因是什么?如何解决?我尝试搜索网络但无法找到相关信息。提前致谢。

Then, it won't post on facebook. What are possible causes of this error and how can I address it? I tried searching the web but couldn't find information about it. Thanks in advance.

顺便说一下,我没有在我的应用上使用webview。只是我的Facebook类中的widget api和show_dialog监听器。

By the way, I am not using webview on my app. Just the widget api and a show_dialog listener in my Facebook class.

推荐答案

Mac开发者库(iOS文档)

文档中的相关部分将是:

The concerned segment from the documentation will be:


URL加载系统错误代码



这些值作为NSError
对象的错误代码属性返回,域名为NSURLErrorDomain。

URL Loading System Error Codes

These values are returned as the error code property of an NSError object with the domain "NSURLErrorDomain".

enum
{
   NSURLErrorUnknown = -1,
   NSURLErrorCancelled = -999,
   NSURLErrorBadURL = -1000,
   NSURLErrorTimedOut = -1001,


如你所见; -999 是由 ErrorCancelled 引起的。这意味着:在上一个请求完成之前发出了另一个请求。

这篇关于iOS中的NSURLErrorDomain错误代码-999的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆