ฉันมีรหัสต่อไปนี้ในไฟล์ .cfm พื้นฐาน ฉันต้องการดึง RSS ของฟีด NYTimes Business
<cfset feedurl = "http://rss.nytimes.com/services/xml/rss/nyt/Business.xml">
<cffeed source="#feedurl#" properties="feedmeta" query="feeditems" />
<cfdump var="#feeditems#" label="feedItems" />
เมื่อฉันรันสิ่งนี้ ฉันได้รับข้อผิดพลาดต่อไปนี้ -
java.lang.StringIndexOutOfBoundsException - in D:\nytimesrss.cfm : line 2
String index out of range: -1
แต่โค้ดเดียวกันนี้ใช้ได้ดีกับ ฟีด Washington นี่เป็นปัญหาในตอนท้ายของ NYTimes หรือมีบางอย่างที่ฉันสามารถแก้ไขได้หรือไม่
{cf_root}\logs\feed.log
บางทีการเข้าถึงอาจถูกบล็อกหรือควบคุมปริมาณ อาจตรวจสอบข้อกำหนดของเว็บไซต์ - person Leigh   schedule 06.05.2013feed.log
อยู่ใน CF8 หรือไม่) - person Leigh   schedule 06.05.2013cfhttp
และทิ้งการตอบกลับ - person Leigh   schedule 06.05.2013<cfhttp url = "http://rss.nytimes.com/services/xml/rss/nyt/Business.xml" method="get" timeout="5"> <cfdump var="#cfhttp#">
และข้อมูลทั้งหมดถูกถ่ายโอนไปยัง 'เนื้อหาไฟล์' แต่รายละเอียดข้อผิดพลาดมี[empty string]
- person Jen   schedule 06.05.2013cffeed
ของ CF8 ไม่สามารถแยกวิเคราะห์ฟีดนั้นได้ อย่างไรก็ตาม ดูเหมือนว่าปัญหาจะได้รับการแก้ไขในเวอร์ชันที่ใหม่กว่า เช่น CF9/10 - person Leigh   schedule 08.05.2013