Sometimes it saves and pulls data but ‘link’ is null
Expected behavior
No errors and ‘link’ data to be available.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: win11
Browser edge
Version latest
Error on create…
SyntaxError:
Unexpected token : in JSON at position 153
at JSON.parse ()
at removeSearchFromUrl (/var/task/node_modules/@pipedream/platform/dist/axios.js:25:32)
at callAxios (/var/task/node_modules/@pipedream/platform/dist/axios.js:96:5)
at Object.fetchFeed (file:///var/task/user/app/rss.app.mjs:50:31)
at Object.fetchAndParseFeed (file:///var/task/user/app/rss.app.mjs:125:41)
at Object.activate (file:///var/task/user/sources/new-item-in-feed/new-item-in-feed.mjs:31:28)
at /var/task/index.js:95:52
at async captureObservations (/var/task/node_modules/@lambda-v2/component-runtime/src/captureObservations.js:28:5)
at async exports.main [as handler] (/var/task/index.js:60:20)
Based on the information you’ve provided, it seems like you’re encountering an issue with the RSS “New Item in Feed” source when trying to pull data from a specific Hockey Canada feed. The error message you’re seeing suggests that there might be an issue with the format of the JSON being parsed.
To help troubleshoot this issue, I would recommend the following steps:
Ensure that the URL you’re using for the RSS feed is correct and accessible. The URL should return a valid RSS XML feed.
Check if the RSS feed conforms to standard RSS format. You can validate the feed using online tools like the W3C Feed Validation service: W3C Feed Validation Service, for Atom and RSS
If the feed is valid and the issue persists, it could be a bug with how Pipedream is parsing the feed. Since you’ve already posted this as a bug on GitHub, the Pipedream development team will likely investigate this further. Keep an eye on the GitHub issue for updates or responses from the team.
If you continue to experience issues or need further assistance, please visit https://pipedream.com/support for more support options.
As for the ‘link’ being null, it’s possible that the feed does not contain a link element for some items, or the link element is not in the expected format. You can examine the raw XML of the feed to confirm if the link elements are present and properly formatted.
If you need to parse the feed differently or apply a workaround, you might consider using a custom Node.js code step in your Pipedream workflow to handle the parsing logic. If you’d like assistance with writing custom code for this, please let me know, and I can provide further guidance.
I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double check my answers and code! Learn how to build your own.
I do not control this feed so I cant really change how it runs.
I do use readybot.io discord bot and it is able to parse the RSS feed and provide a valid link in discord. Maybe the custom node is the workaround required but i m not good with code.