使用开放数据表的 YQL 查询导致 Titanium 移动应用程序崩溃
我在 iPhone 上遇到了 Titanium 的 Titanium.Yahoo.yql 方法的问题。我正在尝试执行一个使用我构建的开放数据表的查询,但不幸的是,它导致了以下异常:
由于未捕获而终止应用程序 例外 'NSInvalidArgumentException',原因: '-[__NSCF字典 setObject:forKey:]: 尝试插入 零值(键:数据)'
这是查询:
USE touchlocal_businesses.xml AS touchlocal.businesses; SELECT * FROM touchlocal.businesses WHERE business="plumbers" AND location="brighton" AND apikey="xxx";
我已经确认该查询确实在 YQL 控制台中返回结果。我还在我的应用程序中尝试了另一种查询,该查询不使用 ODT,并且运行正常。
我最好的猜测是,这与需要 HTTPS 连接的此类查询有关。
还有其他人遇到过这个吗?任何帮助将不胜感激:)
干杯,特里
I'm running into an issue with Titanium's Titanium.Yahoo.yql method on iPhone. I'm trying to execute a query which uses an open data table that I've built but unfortunately, it's causing the following exception:
Terminating app due to uncaught
exception
'NSInvalidArgumentException', reason:
'-[__NSCFDictionary
setObject:forKey:]: attempt to insert
nil value (key: data)'
Here's the query:
USE touchlocal_businesses.xml AS touchlocal.businesses; SELECT * FROM touchlocal.businesses WHERE business="plumbers" AND location="brighton" AND apikey="xxx";
I've confirmed that the query does in fact return results in the YQL console. I've also tried another query, one that doesn't use an ODT, in my app and that works OK.
My best guess is that it's something to do with this type of query requiring an HTTPS connection.
Has anyone else run into this? Any help would be appreciated :)
Cheers, Terry
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这看起来像是 1.8.0.1 中修复的错误:
http://jira.appcelerator.org/浏览/TIMOB-6005
This looks like a bug that was fixed in 1.8.0.1:
http://jira.appcelerator.org/browse/TIMOB-6005