-
-
Notifications
You must be signed in to change notification settings - Fork 895
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
Favorites export failed #1372
Comments
Hello, |
Thank you for your reply.
After unziping there are any json files. All are not empty, but the starred file is. |
If the data is not too much private, you could send me the problematic SQLite database, so I could use it to fix the problem. I of course understand if this is not an option. Could you please check: php -i | grep memory_limit The export/import would need a refactoring to be more memory-efficient (using streaming instead of in-memory copies). |
Avoid large in-memory copies FreshRSS#1372
Thank you Alkarex!
I replaced the files you commited and the export works for me. The next problem is to import them if I try it with CLI: On import in the GUI I get error too: "Error during JSON stars import" |
Thanks for trying, @forvalak |
P.S.: Could you please check with another tool that the generated JSON is valid? cat freshrss_starred_2016-11-16.json | jq . |
I parsed the JSON file with jq and found two errors: there was a second comma between items like below: |
P.S.: I check all the exported JSON files for errors I described above and detected the same errors in any feed_*.json files too. |
Strange with the comma. Could you please try this additional patch and see whether it solves the problem? 1d5006d |
This commit solved the comma issue :) Thank you very much! |
Merged in /dev :-) |
Avoid large in-memory copies FreshRSS#1372
On trying to export the favorites a empty starred*.json file downloads.
I use v1.6.1 on SQLite.
Would like to change to MySQL/MariaDB and would like to keep my favorites.
There are 2 users, one of them have only few favorites <50 (the export works there).
The other one have about 5000 favorites, there could be downloaded only empty file.
Is the export limited to a certain number of favorites?
I also tryed to export with the command line, the starred file was also empty.
The text was updated successfully, but these errors were encountered: