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

查看:75
本文介绍了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 课程中只有小部件 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 error has been documented on the Mac Developer Library(iOS docs)

文档中的相关部分将是:

The concerned segment from the documentation will be:

这些值作为 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 引起的.这意味着:在前一个请求完成之前发出另一个请求.

As you can see; -999 is caused by ErrorCancelled. This means: another request is made before the previous request is completed.

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

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