CFFEED: String index out of range: -1
Today I decided it would be cool to give cffeed a try.
I read over the documentation and created a script to pull a few different feeds based on a database table of feeds.
My first two rss feeds ran without any problem.
The last two feeds threw an error.
Here is the error I am receiving:
String index out of range: -1
Here is the code:
<cffeed
source = "http://feeds.sphinn.com/sphinn" query = "theFeed"
>
<cfcatch>
<cfdump var="#cfcatch#">
</cfcatch>
</cftry>
I updated my CF 8 installation to 8.01 because I thought maybe it was a bug but that didn't seem to help.
Any ideas what could be causing this error?
http://www.cfedge.com/trackback.cfm?D4F29DBD-E02E-757E-0422590CD778D9B2



<cfhttp url="http://feeds.sphinn.com/sphinn" action="get" result="objGet" />
<cfdump var="#objGet#" />
<cfset xmlData = XmlParse( Trim( objGet.FileContent ) ) />
<cfdump var="#xmlData#" />
Try that and see iwhere the error happens. Might help.
http://www.adobe.com/go/wish
CFFEED... I'm happy Adobe added it, but boy has it been flakey.
Thanks for your help. I will be sure to report the bug and use a struct for now.
If you balance the tag (I know you cant because it's not your feed) like so; <dc:creator>Test</dc:creator> or remove it then it works properly. I don't know if that's the only tag it chokes on or not.
Solution? Use the name Attribute and then create your Query from the resulting structure.
Thanks,
Hemant
Adobe ColdFusion Team