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

OPML Import Error #3035

Closed
1 task
bmschwa opened this issue Jan 7, 2025 · 5 comments
Closed
1 task

OPML Import Error #3035

bmschwa opened this issue Jan 7, 2025 · 5 comments
Labels

Comments

@bmschwa
Copy link

bmschwa commented Jan 7, 2025

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
  • [ X] I accept that the issue will be closed without comment if I do not check here
  • [ X] 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

What problem did you encounter?

I tried to import an OPML file that I had exported from a previous version of the news program.

Steps to Reproduce

Explain what you did to encounter the issue

  1. Went to the news app
  2. Clicked the Upload Button
  3. Tried Uploading the attached

System Information

  • News app version: 25.1.2
  • Nextcloud version: 30.0.4
  • Cron type: (system cron/python updater/...) n/a/
  • PHP version: 8.2
  • Database and version: Mysql
  • Browser and version: Brave
  • OS and version: Linux
Contents of nextcloud/data/nextcloud.log
Failed to import 1 feeds. Please check the server log!
Contents of Browser Error Console ```

Server Log has this:
```json

{"Exception":"OCA\\News\\Service\\Exceptions\\ServiceValidationException","Message":"Failed to import 1 feeds. Please check the server log!","Code":0,"Trace":[{"file":"/var/www/vhosts/XXXX/httpdocs/nextcloud/apps/news/lib/Controller/ImportController.php","line":52,"function":"import","class":"OCA\\News\\Service\\OpmlService","type":"->"},{"file":"/var/www/vhosts/XXXX/httpdocs/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"opml","class":"OCA\\News\\Controller\\ImportController","type":"->"},{"file":"/var/www/vhosts/XXXX/httpdocs/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/vhosts/XXXX/httpdocs/nextcloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/vhosts/XXXX/httpdocs/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/vhosts/XXXX/httpdocs/nextcloud/lib/base.php","line":1003,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/vhosts/XXXX/httpdocs/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/vhosts/XXXX/httpdocs/nextcloud/apps/news/lib/Service/OpmlService.php","Line":104,"message":"Failed to import 1 feeds. Please check the server log!","exception":{},"CustomMessage":"Failed to import 1 feeds. Please check the server log!"}}

@bmschwa bmschwa added the bug label Jan 7, 2025
@SMillerDev
Copy link
Contributor

There must be more errors before that log entry.

@Grotax
Copy link
Member

Grotax commented Jan 8, 2025

Hi, so did you check the server logs as the message tells you?

You can do that via the admin settings.

@bmschwa
Copy link
Author

bmschwa commented Jan 8, 2025

I had looked on the server in the nextcloud.log file; not in the admin settings... Thanks for directing me to the right place.

I think this is the right section.... Looks like it choked on this feed: https://www.decential.io/features?format=rss (Looks like it moved here: https://www.decential.io/articles?feature=rss ... but still gives a parse error)

{"reqId":"Z37TGzt8d7s@S0U7WfUK@AAAAQU","level":0,"time":"2025-01-08T19:33:47+00:00","remoteAddr":"73.36.165.121","user":"schwrtrrer","app":"news","method":"POST","url":"/index.php/apps/news/import/opml","message":"read access : https://www.decential.io/features?format=rss into a feed instance (feed class : FeedIo\\Feed)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36","version":"30.0.4.1","data":{"app":"news"}} {"reqId":"Z37TGzt8d7s@S0U7WfUK@AAAAQU","level":0,"time":"2025-01-08T19:33:47+00:00","remoteAddr":"73.36.165.121","user":"schwrtrrer","app":"news","method":"POST","url":"/index.php/apps/news/import/opml","message":"start reading https://www.decential.io/features?format=rss","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36","version":"30.0.4.1","data":{"app":"news"}} {"reqId":"Z37TGzt8d7s@S0U7WfUK@AAAAQU","level":1,"time":"2025-01-08T19:33:47+00:00","remoteAddr":"73.36.165.121","user":"schwrtrrer","app":"news","method":"POST","url":"/index.php/apps/news/import/opml","message":"hitting https://www.decential.io/features?format=rss","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36","version":"30.0.4.1","data":{"app":"news"}} {"reqId":"Z37TGzt8d7s@S0U7WfUK@AAAAQU","level":0,"time":"2025-01-08T19:33:48+00:00","remoteAddr":"73.36.165.121","user":"schwrtrrer","app":"news","method":"POST","url":"/index.php/apps/news/import/opml","message":"response ok, now turning it into a document","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36","version":"30.0.4.1","data":{"app":"news"}} {"reqId":"Z37TGzt8d7s@S0U7WfUK@AAAAQU","level":0,"time":"2025-01-08T19:33:48+00:00","remoteAddr":"73.36.165.121","user":"schwrtrrer","app":"news","method":"POST","url":"/index.php/apps/news/import/opml","message":"the stream is modified, parsing it","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36","version":"30.0.4.1","data":{"app":"news"}} {"reqId":"Z37TGzt8d7s@S0U7WfUK@AAAAQU","level":2,"time":"2025-01-08T19:33:48+00:00","remoteAddr":"73.36.165.121","user":"schwrtrrer","app":"news","method":"POST","url":"/index.php/apps/news/import/opml","message":"https://www.decential.io/features?format=rss read error : malformed xml string. parsing error : DOMDocument::loadXML(): StartTag: invalid element name in Entity, line: 1 (2)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36","version":"30.0.4.1","data":{"app":"news"}} {"reqId":"Z37TGzt8d7s@S0U7WfUK@AAAAQU","level":0,"time":"2025-01-08T19:33:48+00:00","remoteAddr":"73.36.165.121","user":"schwrtrrer","app":"news","method":"POST","url":"/index.php/apps/news/import/opml","message":"malformed xml string. parsing error : DOMDocument::loadXML(): StartTag: invalid element name in Entity, line: 1 (2)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36","version":"30.0.4.1","data":{"app":"news"}}

@Grotax
Copy link
Member

Grotax commented Jan 8, 2025

Try adding it with this link: https://www.decential.io/home?format=rss

maybe they changed the website and tech stack but this was discovered by feed-io our library.

This is not a bug if websites change and redirects are not put in place we can't do anything.

@Grotax
Copy link
Member

Grotax commented Jan 9, 2025

Future versions of news will also show the error in the web-ui thanks to @wofferl 👍

I think with that and the link I provided this case is closed.

@Grotax Grotax closed this as completed Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants