Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: RSS feed errors when using XML option
Status | Resolved |
Add-on / Version | DataGrab 4.0.2 |
Severity | |
EE Version | 6.3.4 |
Eric Nelson
Jun 22, 2022I keep getting the error “Cannot parse the XML from file/url” when trying to import an RSS feed as XML.
This happens whether I use the /rss/channel/item or leave it blank.
I am guessing its specific to the import URL’s RSS formatting but not sure what, it looks basic. (I X’d out the details)
<rss xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
<channel>
<title>XXX</title>
<link>https://www.xxx.com</link>
<description>XXXXXXX</description>
<pubDate>Wed, 22 Jun 2022 13:38:46 GMT</pubDate>
<lastBuildDate>Wed, 22 Jun 2022 13:38:46 GMT</lastBuildDate>
<item>
<title>xxx</title>
<p>etc.</p>
</item>
</channel>
</rss>
BoldMinded (Brian)
Jun 22, 2022
That error message is b/c it can’t find the file, not because the file format is incorrect. Make sure the full path is valid.
BoldMinded (Brian)
Jun 22, 2022
Actually never mind that is a parse error. Try removing xmlns:media=“http://search.yahoo.com/mrss/” version=“2.0” so it’s just <rss>
BoldMinded (Brian)
Jun 22, 2022
Also, did you try to use the simplified example above as an actual import file?
Eric Nelson
Jun 22, 2022
Its a URL provided by a news resource so I can’t change it there. But I can try to save the file and edit that out and see if it imports that way. But I really need it to be able to work with what they provide because they won’t alter their system just for us. 😊
Eric Nelson
Jun 22, 2022
It works fine from a file, but not with URL
Eric Nelson
Jun 22, 2022
Comment has been marked private.
BoldMinded (Brian)
Jun 22, 2022
I wouldn’t say you can’t use the old RSS import. Deprecated just means I won’t be putting any additional effort into supporting it or making changes to it. If it works for you then go ahead and use it.
I’ll try to create an import of this feed locally in xml and see if I can tell what the real issue is. Did you check your DataGrab.log file noted in the docs? It might reveal an error message.
BoldMinded (Brian)
Jun 22, 2022
On what screen exactly do you get that error message? Can you share screenshots or a video?
BoldMinded (Brian)
Jun 22, 2022
Comment has been marked private.
Eric Nelson
Jun 23, 2022
Comment has been marked private.
BoldMinded (Brian)
Jun 23, 2022
Edit ticket and upload images, or put things on Dropbox or similar service and link to the file in a private comment.
Eric Nelson
Jun 23, 2022
Comment has been marked private.
BoldMinded (Brian)
Jun 23, 2022
In the video you didn’t enter the XML Path value…
Eric Nelson
Jun 23, 2022
Comment has been marked private.
BoldMinded (Brian)
Jun 23, 2022
I had https for the feed URL. Have you tried that?
Eric Nelson
Jun 23, 2022
I didn’t even notice that was http.. UGH!!! That was it!
Thanks, sometimes its the smallest details!
BoldMinded (Brian)
Jun 23, 2022
😊 Glad it was an easy fix!