-
Notifications
You must be signed in to change notification settings - Fork 259
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
JsonDataException: Not an RFC #890
Comments
I tried a couple of articles and things seem to work ok. It seems that the server returns an incorrect date for some reason. It can be inspected with |
Thanks for the reply. The web UI shows correct dates, and I have no problem reading the articles in the web app. I actually tried it with clean slate, it starts syncing and half way there it just stops sync, so the app has no articles to show. I will see if I can get some logs from the app too. Could you tell me how I can inspect it with Curl? |
You can reuse the API client from wallabag android app and get a new access token as described in the documentation: https://doc.wallabag.org/en/developer/api/oauth.html Afterwards you can use the API call to get the entry: |
There may be a problem in finding the problem article. If you sure the problem is caused by some specific recently added articles, you may just check them right away as @Strubbl explained (there should be a couple of date fields in each article: I'm afraid app logs can only narrow it down to a 30-article batch (referred to as "page" in requests), but you can also find the same page number by inspecting the server logs - it will be the last requested page ( |
I am not seeing anything in the logs regarding pages (var/log/prod.log) , probably I need to enable some debug somewhere. Here I tried to capture the page from mysql tables of last 10 days. Can you spot any date issues? The only thing that sticks to me is the "NULL"s in the published data, though that might be normal. Only thing I see is this which does not make sense to me why would it report auth error?
I tried the api refilling in the connection settings couple times, I even deleted the api keys in the user settings to make sure. Everytime it seems to grab the keys and create the api stuff in the user settings succesfully. I am not sure if this is related at all. |
Sorry I wasn't clear - I meant the web server logs.
Don't mind that. #789 I don't see any problem on the screenshot. I guess you should either get the web server logs during the app's full sync, or the app logs of the same procedure. Or both. |
Here is the access log. The last line is when the app errors out I think.
And I think this the android log between the sync and errroring
|
Run this: curl --get -s 'https://YOUR.INSTANCE/api/entries.json' -H 'Authorization:Bearer YOUR_ACCESS_TOKEN' -d order=asc -d page=22 -o articles.json Then inspect |
Thanks I think I did it right but I see no prints on the terminal at all. I got the access token then plugged in my token and the url in the line. how I got the access token This gave me an access token and refresh token, the I used the acccess token in the line you gave above. |
Ok, I used the curl line couple entries above, I got an articles.json.
here is how I downloaded the articles
EDIT: Only one that is similar I could find is
EDIT2: If you could tell me how to search teh Mysql tables, maybe I can locate it there? I tried to go through the tables to see if I can locate anything but too many entries in the database. |
It wasn't meant to print anything, it just writes to
The parameters are missing in this line, so it fetches a wrong "page". Please do the following:
I would, but I'm not quite sure how that value is represented in SQL. Also which field to check. |
Ok I think I found it how it looks in mysql
I sorted columns by published date, and that article seems to be the only one with that format https://i.imgur.com/Mm8frMU.png I am also wondering why this line returns no results, should not it grab all the articles etc?
|
That's a peculiar conversion. I added this articles to my wallabag instance and nothing broke. I guess it might have been a bug in older siteconfig, which is fixed now. So you can simply refetch the article. The app started to process the publication date since 2.3.0, but there was no error because apparently this article wasn't downloaded from server until recently (because it already was in the app).
It only loads 30 articles at a time by default. |
Ok For the record, I copied the date from the one below and pasted into the wront date entry. It all works now. Thanks to everyone who guided me here. However it would be nice if the app is more forgiveful with this kind of stuff, this took many hours to hunt down one article, and not everyone is a developer. I am sure it would be very quick for those who do this daily. thanks |
Ok , well maybe not so easy. The app keeps crashing afterwards. I was able to load all the articles and browse couple articles. THen I restart the app now it constantly crashes, I am not sure if this is related or not. I tried this multiple times, it crashes after grabbing all the articles. I think this has something to do with full sync. Let me know if this is a separate issue so I can start a new one. App logs |
Yeah, it makes sense. I'll consider it. Seems to be #413. This is (hopefully) fixed in |
Thanks for all the help. I think that I got hit by 2 bugs at the same time which made the issue very complicated for my use here. Clearing data, starting fresh does not help so created a new bug with more details to replicate the issue |
You're welcome :) I hope you'll have better experience in the future. |
i'm also having this bug on first sync... similar problem to #1049... also: it would be nice to have a magic SQL query to find the right entries as well... with large wallabag databases, this is hard! :) |
Issue details
The app stopped syncing with the server, so I try Full Sync. During the Sull Sync I get the error in the image. After that Wallabag app refuses to start again, crashes right away, it seems to me that this even corrupts its database.
See the image
https://i.imgur.com/w7bGamI.png
Duplicate?
This started happened after I added couple very large articles, I mean very large. They are ok in the web app but I am suspecting that this causes the issue. So this needs to be tested with huge articles.
Actual behaviour
The app does not sync the latest added articles, full sync crashes the app and corrupts the app db.
Expected behaviour
It should download the latest articles.
Steps to reproduce the issue
Try adding articles from this page
https://en.wikipedia.org/wiki/Wikipedia:Wikipedia_records#Articles like https://en.wikipedia.org/wiki/Saudi_Arabian-led_intervention_in_Yemen, https://en.wikipedia.org/w/index.php?oldid=752675586
And see if those sync back
Environment details
wallabag app version:
2.3.0
wallabag app installation source (e.g. Gplay, F-Droid, manual):
Fdroid
Android OS version:
LineageOS 14.1
Android ROM (e.g. stock, LineageOS, SlimRom,…):
LineageOS 14.1
Android hardware:
Samsung
wallabag server version:
Version: 2.3.8
Do you have Two-Factor-Authentication enabled?: yes/no
No
Logs
wallabag server
Please paste relevant wallabag server logs here (from file
<wallabag>/var/logs/prod.log
):(I already fixed that execution time in the php, however including it here for the record)
Web server
Please paste relevant web server logs (e.g. from nginx, Apache, …) here:
Not sure about the logs, I do not see anything relevant, see
Your experience with wallabag Android appositive end note does wonders)
I love the app, I think it is great!
The text was updated successfully, but these errors were encountered: