WebKitErrorDomain:300怎么办

ios中加载网页,会报如标题所示的错误“Operation could not be completed. (WebKitErrorDomain error 101.)”。搜索了一下,发现是url的问题。url中不支持“|”,这也是为我之前好还比较好奇,为什么使用ios自带的safari输入网址时,发现找不到“|“
把参数进行转码即可,例如:空格->%20、%->%25、|->%7C、^->%5E等
阅读(...) 评论()查看: 3204|回复: 2
注册时间最后登录在线时间340 小时威望143 金币阅读权限20积分143帖子分享精华0UID59650
注册会员, 积分 143, 距离下一级还需 57 积分
最后登录在线时间340 小时威望143 金币苹果779 注册时间阅读权限20帖子分享精华0积分143UID59650
今天用safari3打万方数据库的时候出现了错误:Safari 无法打开网页 “”。 错误是:“不允许使用受限制的网络端口”(WebKitErrorDomain:103) 请从 Safari 菜单中选取“将 Bug 报告到 Apple…”,记下错误号码并描述您在看到该信息前所执行的操作。。。
不知道到底是mac os的firewall将某个port给屏蔽掉了还是safari3的问题?
不知道XDJM们有遇到过么?
望坛里的高手给与解答!谢谢~
[ 本帖最后由 heaoing 于
22:33 编辑 ]
注册时间最后登录在线时间340 小时威望143 金币阅读权限20积分143帖子分享精华0UID59650
注册会员, 积分 143, 距离下一级还需 57 积分
最后登录在线时间340 小时威望143 金币苹果779 注册时间阅读权限20帖子分享精华0积分143UID59650
顶起来 等高手来解答!
注册时间最后登录在线时间340 小时威望143 金币阅读权限20积分143帖子分享精华0UID59650
注册会员, 积分 143, 距离下一级还需 57 积分
最后登录在线时间340 小时威望143 金币苹果779 注册时间阅读权限20帖子分享精华0积分143UID59650
大家都没有遇到过这样的问题么?郁闷
Powered byStack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
I want to load a word document using UIWebView. I used the code provided in
to load the document.
But not all the documents load successfully. Sometimes I get an error
Error Domain=WebKitErrorDomain Code=102 UserInfo=0x145bc10 "Frame load interrupted"
The error seems to be very sporadic and I get this error only for some documents.
However the same document loads correctly in mail.app.
What am I missing?
19.3k1176136
9,486104986
The reason was, the file I tried to load doesn't contain a extension.
I was purposely removing the file extension (.doc and .ppt) which I think confused the UIWebView. Seems like iPhone ignores the OS 9 legacy typecodes completely. :)
9,486104986
I submitted a Radar regarding this issue. It's resolved in the latest version of iPhone OS 4.0.
4,54911520
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabledWebKitErrorDomain错误101
下面的代码会产生错误的和:
WebKitErrorDomain error 101
-(Void) searchBarSearchButtonClicked: (UISearchBar *) activeSearchBar {
NSString * query = [searchBar.text stringByReplacingOccurrencesOfString: @ "" withString: @ "+"];
NSURL * url = [NSURL URLWithString: [NSString stringWithFormat: @ " CodeGo.net
=%, query]];
NSURLRequest * requestObj = [NSURLRequest requestWithURL: url];
[Home loadRequest: requestObj];
-(Void) loadView {
[Super loadView];
CGRect bounds = [[UIScreen mainScreen] applicationFrame];
searchBar = [[UISearchBar alloc] initWithFrame: CGRectMake (0.0, 0.0, bounds.size.width, 48.0)];
searchBar.delegate =
[Self.view addSubview: searchBar];
我不会说英语,并依靠翻译。语言问题会是这样一个键盘问题,或编码的问题?
本文地址 :CodeGo.net/266179/
-------------------------------------------------------------------------------------------------------------------------
1. 按照WebKitError头,错误101的意思是“WebKitErrorCannotShowURL”,这是不是非常有帮助。
这条线是不正确的:
NSURL * url = [NSURL URLWithString: [NSString stringWithFormat: @ " CodeGo.net
=%, query]];
...它应该像这样:
NSURL * url = [NSURL URLWithString: [NSString stringWithFormat: @ " CodeGo.net
=%@", query]];
我不知道,如果通过产生一个错误的URL,或者如果它是一个错字它的错误。
只是有这个问题,我的自我。这似乎可以“在web视图loadView。
我搬到我的代码viewDidAppear:现在一切完美的作品!
本文标题 :WebKitErrorDomain错误101
本文地址 :CodeGo.net/266179/
Copyright (C) 2014 CodeGo.net 沪ICP备号 联&系& c&o&d&e&g&o &@&1&6&3&.&c&o&m

我要回帖

 

随机推荐