Skip to content

feedparser - Error: The XML document could not be parsed as a feed #1131

@My-Random-Thoughts

Description

@My-Random-Thoughts

Which node are you reporting and issue on?

Feedparser v1.0.5

What are the steps to reproduce?

Ingest broken feed (not sure on specifications)

I have it reading a feed every 15 minutes.

What happens?

My entire node-red instance crashes and reboots.

13 May 08:00:06 - [error] Error: The XML document could not be parsed as a feed
    at parseFeed (/data/node_modules/@rowanmanning/feed-parser/index.js:38:8)
    at getFeed (/data/node_modules/node-red-node-feedparser/32-feedparse.js:34:30)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)

13 May 08:00:07 - [info]
Welcome to Node-RED
===================
13 May 08:00:07 - [info] Node-RED version: v4.1.10
13 May 08:00:07 - [info] Node.js  version: v22.22.2
13 May 08:00:07 - [info] Linux 6.1.0-18-amd64 x64 LE

What did you expect to happen?

Not to crash my entire node-red instance

Example flow

No response

Environment

  • Node-RED : node-red-docker@4.1.10 /usr/src/node-red
  • Node.js : v22.22.2
  • npm : 10.9.8
  • Platform : Linux 6.1.0-18-amd64 x86_64
  • Browser : FireFox (150.0.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions