Coldfusion 8 和Twitter - cffeed 无法读取源 URL。状态代码:400
在 Coldfusion 8 Enterprise (8,0,1,195765) 中,以下两行代码会导致此错误:
无法读取源 URL。状态代码:400 尝试在 CFFeed 标记中添加或更改 UserAgent 属性
<cffeed source="http://twitter.com/statuses/user_timeline/62944327.rss" query="twitter">
<cfdump var="#twitter#">
然而,在我的带有 Coldfusion 8 Standard (8,0,0,176276) 的开发盒上,它正在工作......啊。有什么想法吗?
In Coldfusion 8 Enterprise (8,0,1,195765), the following two lines of code causes this error:
Unable to read the source URL. Status Code: 400 Try adding or changing UserAgent attribute in the CFFeed tag
<cffeed source="http://twitter.com/statuses/user_timeline/62944327.rss" query="twitter">
<cfdump var="#twitter#">
Yet, on my development box with Coldfusion 8 Standard (8,0,0,176276), it's working.... Argh. Any ideas why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不确定,但可能是由于速率限制引起的,如本页所述
http: //apiwiki.twitter.com/HTTP-Response-Codes-and-Errors
和此页面:
http://apiwiki.twitter.com/Rate-limiting
Not sure, but possibly it is caused by rate limiting as explained on this page
http://apiwiki.twitter.com/HTTP-Response-Codes-and-Errors
and this page:
http://apiwiki.twitter.com/Rate-limiting
运行Enterprise的服务器是否必须通过代理才能出去?我以前在 cfhttp 中也遇到过这种情况,它可以在开发环境中工作,但不能在生产环境中工作,因为生产环境是通过代理发出的,您必须提供代理信息才能使其工作。
Does the server running Enterprise have to go through a proxy to get out? I've had that happen before with cfhttp, it works on dev but not in production because the production box goes out through a proxy and you have to supply the proxy info to make it work.