Skip to content

Error "Index was outside the bounds of the array" on some minor deviations from specification #5

Description

@tseykovets

When reading some feeds, FeedMD returns the following error:

Error reading feed item item: Index was outside the bounds of the array.

This is observed on feeds that have some deviations from the specification, but these deviations do not seem to be very critical. It seems that FeedMD could ignore some problems during parsing.

Here is an example of a feed that causes this error: https://club.hugeping.ru/echo/std.english/rss

There is an assumption that the main problem is in the date format, which does not comply with RFC #822. But this is a variation on the RFC #3339 theme , which is often used in feeds.

Maybe it makes sense to implement processing of alternative date formats that often appear in RSS? At least try to detect the RFC #3339 piece with some kind of regular expression: (\d{4})-(\d{2})-(\d{2})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions