Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feeds are silently ignored with misleading error! Lost tons of feeds #1993

Open
3 tasks done
thiswillbeyourgithub opened this issue Nov 19, 2022 · 6 comments
Open
3 tasks done
Labels
bug frontend impact Javascript/Frontend code

Comments

@thiswillbeyourgithub
Copy link

IMPORTANT

Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)

  • I have read the CONTRIBUTING.md and followed the provided tips
  • I accept that the issue will be closed without comment if I do not check here
  • I accept that the issue will be closed without comment if I do not fill out all items in the issue template.

Explain the Problem

When adding a feed. For some reason sometime the feed is malformed or something and the logging will output the "No parser can handle this stream" error. But the error does not appear anywhere else, only in the logs. I can't know if the feed was correctly added.

For months I was had been adding feeds and when trying twice in a row a red message will appear saying ""This feed already exists" when in fact it does not. Simply reloading the page shows that the warning disappears if I paste the url again.

I think the main issue is that there is no clearer warning that an error happened, and the red warning should not tell you a feed exists if it failed.

Steps to Reproduce

Explain what you did to encounter the issue

  1. try to add feed "https://bisq.network/blog/feed.atom"
  2. notice that you don't get a warning anywhere that something wrong happened
  3. paste the url a second time in the "new feed field" and notice a red warning stating that this feed already exists
  4. reload the page, paste the url a third time and notice that the warning disappeared : the feed was never added!
  5. open the nextcloud logs and see the error "no parser can handle this stream"

System Information

  • News app version: 19.0.0
  • Nextcloud version: 23.0.11
  • Cron type: system cron
  • PHP version: 8.0.25
  • Database and version: not sure
  • Browser and version: firefox 107
  • OS and version: ubuntu 22
Contents of nextcloud/data/nextcloud.log
Paste output here
Contents of Browser Error Console Read http://ggnome.com/wiki/Using_The_Browser_Error_Console if you are unsure what to put here
Paste output here
@Grotax
Copy link
Member

Grotax commented Nov 19, 2022

Yea the UI is quite broken regarding that, won't be fixed in the current code. If the new version ever gets done I'm sure we will have better error messages for the user.

@thiswillbeyourgithub
Copy link
Author

Thanks for the quick reply!

To me, at least disabling the warning seems a progress as I can't imagine a user pasting twice a feed if he/she has not encountered an issue. In which case the error is misleading and will make the user think the feed was added.

I can't think of a case where the warning is useful actually.

@Grotax
Copy link
Member

Grotax commented Nov 19, 2022

Yea to my understanding it's due to the integrated storage or list inside the front-end code, since it does not ask the backend for that.

And nobody is really willing to touch that code anymore. There have been only very minor changes in the past.

@Grotax Grotax added the frontend impact Javascript/Frontend code label Jan 11, 2023
@nursoda

This comment was marked as off-topic.

@Grotax
Copy link
Member

Grotax commented Dec 24, 2023

@nursoda your comment doesn't make much sense to me.

To my understanding this issue was about a missing warning in the UI when you try to add a feed that is not working.
The new UI has error reporting, might also not catch all cases but shows a warning if feed returns http 500 for example.

What you probably mean is that there are warnings and errors in the logs and the server now shows that directly in the overview.
But what should news do about that? The warnings and errors we log are for good reasons, to check if something went wrong.

@nursoda

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug frontend impact Javascript/Frontend code
Projects
None yet
Development

No branches or pull requests

3 participants