Skip to content

[FR] Improve error message for invalid feeds when importing OPML file #261

Description

@aportela

Problem

I have a opml file exported from another rss reader software. Has a lot of feeds and seems that there are some old entries that not exist. When import on fusion, i see a error message "invalid link" but I don't know what link is failing (for removing with an editor from opml file).

Additionally, since an error occurs, none of the feeds from the OPML file are imported in the end. I assume everything is wrapped in a transaction and is rolled back when errors occur.

Proposed Solution

Show on error message the failed link as example (feed.go file)

if err := httpc.ValidateRequestURL(c.Request.Context(), *req.Link, h.config.AllowPrivateFeeds); err != nil {
badRequestError(c, "invalid rss link: "+*req.Link)
return
}

Alternatives Considered

It would be better if, when importing the OPML file, the process skipped a feed if an error occurs and continued with the next one, so that the feeds that are imported successfully are still added.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions