Can't add xml feeds even feeds are validated OK
- [x] I have read the CONTRIBUTING.md and followed the provided tips
Explain the Problem
What problem did you encounter? When I try to add following feeds:
- http://www.dsl.sk/export/rss_articles.php | validation
- http://rammstein-austria.com/rss/rss.xml | validation
I got error "Feed contains invalid XML". Both working well in inoreader from which I am trying to switch.
Steps to Reproduce
Explain what you did to encounter the issue
- Try to add feed
System Information
- News app version: 10.1.0
- Nextcloud version: 11.0.1
- PHP version: PHP 5.6.30
- Database and version: SQLite3
- Browser and version: -
- Distribution and version: -
Contents of nextcloud/data/nextcloud.log
Nothing appears new in nextcloud.log after Subscribe button is pushed..
Contents of Browser Error Console
Read http://ggnome.com/wiki/Using_The_Browser_Error_Console if you are unsure what to put here
Nothing appears in log
I can add them just fine, can you check again?
Nope.. same error. I tried also new account just for that, same problem.
Can you try master (build instructions should be in the readme)
Tried.. but it failed - as I can see.. travis is failing also (I am running it as root).
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
bower ESUDO Cannot be run with sudo
Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.
http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814
You can however run a command with sudo using --allow-root option
npm ERR! Linux 3.14.79+
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! nextcloud-news@ prebuild: `npm install && npm update && node_modules/bower/bin/bower install && node_modules/bower/bin/bower update`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nextcloud-news@ prebuild script 'npm install && npm update && node_modules/bower/bin/bower install && node_modules/bower/bin/bower update'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the nextcloud-news package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm install && npm update && node_modules/bower/bin/bower install && node_modules/bower/bin/bower update
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs nextcloud-news
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls nextcloud-news
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /data/news/js/npm-debug.log
make[1]: *** [Makefile:100: npm] Error 1
make[1]: Leaving directory '/data/news'
make: *** [Makefile:79: build] Error 2
/data/news # cat /data/news/js/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle nextcloud-news@~prebuild: nextcloud-news@
6 verbose lifecycle nextcloud-news@~prebuild: unsafe-perm in lifecycle true
7 verbose lifecycle nextcloud-news@~prebuild: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/data/news/js/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
8 verbose lifecycle nextcloud-news@~prebuild: CWD: /data/news/js
9 silly lifecycle nextcloud-news@~prebuild: Args: [ '-c',
9 silly lifecycle 'npm install && npm update && node_modules/bower/bin/bower install && node_modules/bower/bin/bower update' ]
10 silly lifecycle nextcloud-news@~prebuild: Returned: code: 1 signal: null
11 info lifecycle nextcloud-news@~prebuild: Failed to exec prebuild script
12 verbose stack Error: nextcloud-news@ prebuild: `npm install && npm update && node_modules/bower/bin/bower install && node_modules/bower/bin/bower update`
12 verbose stack Exit status 1
12 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
12 verbose stack at emitTwo (events.js:106:13)
12 verbose stack at EventEmitter.emit (events.js:191:7)
12 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
12 verbose stack at emitTwo (events.js:106:13)
12 verbose stack at ChildProcess.emit (events.js:191:7)
12 verbose stack at maybeClose (internal/child_process.js:877:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
13 verbose pkgid nextcloud-news@
14 verbose cwd /data/news/js
15 error Linux 3.14.79+
16 error argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
17 error node v6.9.4
18 error npm v3.10.10
19 error code ELIFECYCLE
20 error nextcloud-news@ prebuild: `npm install && npm update && node_modules/bower/bin/bower install && node_modules/bower/bin/bower update`
20 error Exit status 1
21 error Failed at the nextcloud-news@ prebuild script 'npm install && npm update && node_modules/bower/bin/bower install && node_modules/bower/bin/bower update'.
21 error Make sure you have the latest version of node.js and npm installed.
21 error If you do, this is most likely a problem with the nextcloud-news package,
21 error not with npm itself.
21 error Tell the author that this fails on your system:
21 error npm install && npm update && node_modules/bower/bin/bower install && node_modules/bower/bin/bower update
21 error You can get information on how to open an issue for this project with:
21 error npm bugs nextcloud-news
21 error Or if that isn't available, you can get their info via:
21 error npm owner ls nextcloud-news
21 error There is likely additional logging output above.
22 verbose exit [ 1, true ]
Don't run it as root ;) use something like sudo -u www-data make
So.. compiled (or what it's this magic is doing) :) .. old news folder disabled, tared, removed. I copied whole news compiled folder to apps/ folder in nextcloud and enabled news app (it says version 10.1.1). I tried add rss channels from first post, but still the same error :-/
Do you use a php cache? If so clear it first (restart apache). Another guess would be that something alters the XML when you try to download it from your server.
Apart from that no idea really since I can't reproduce it. You'd need to read through https://github.com/fguillot/picoFeed/tree/master/lib/PicoFeed and check if the malformed xml exception is thrown in certain cases.
Hi,
it's running in docker, tried to restart it but still same problem. I will try to debug it, but that will take some time (have to find out some spare time to read thru PicoFeed).
Closing because of inactivity and not being able to reproduce it
I know this issue have been close, but if this can help, I also never could read the following rss feed with nextcloud news (http://huet.blog.lemonde.fr/feed/)
However, I could add with no problem the rss feeds from the original post. Would it be possible that once a corrupted rss feed has been added, it is not removed, preventing another (correct) version to be used instead?
Indeed, once the "incorrect" rss feed is added, an error message appears but the feed cannot be removed. Once the news app reloaded, the faulted rss feed disappeared without having been explicitly removed.
Can you tell me where are stored the rss feeds, in ordered to check if I can remove a possible corrupted file?
PS: This is with a much up to date nextcloud system thant in the original post: news app v12.0.1, nextcloud v13, php v7.0.27, apache v2.4.25, mariadb v10.1.26, running on top of an Debian Stable.
Indeed, once the "incorrect" rss feed is added, an error message appears but the feed cannot be removed. Once the news app reloaded, the faulted rss feed disappeared without having been explicitly removed.
That's because an incorrect feed is never added in the first place. There are also no files therefore no corrupted files possible :)
OK, nice try... So no idea why some rss feeds reports xml errors on some places and not on some others.
Can you reproduce the "invalid xml" error with the http://huet.blog.lemonde.fr/feed/ rss feed, or is it again the same case of non-reproductible error?
File a new issue please