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

App sync error: expected a string but was BEGIN_ARRAY #4411

Open
GeorgeHahn opened this issue May 22, 2020 · 13 comments
Open

App sync error: expected a string but was BEGIN_ARRAY #4411

GeorgeHahn opened this issue May 22, 2020 · 13 comments

Comments

@GeorgeHahn
Copy link

Issue details

Part of the way through initial sync on my device, the sync process halts and an error is shown in the notification drawer. The sync process does not continue and no items are shown.

Error:

Error: com.squareup.moshi.JsonDataException: Expected a string but was BEGIN_ARRAY at path $._embedded.items[4].published_by[0]

Environment

Wallabag version: 2.3.8
Installation method: Docker (running latest tag, f6b2b6b2a1fd)
Running on a local network server
Database: SQLite

Steps to reproduce/test case

Sync with android app version 2.3.0 (219), observe failure midway through sync.

@GeorgeHahn
Copy link
Author

GeorgeHahn commented May 22, 2020

I followed the app sync to find the item causing this failure. Here's the entry where the error occurs (many fields omitted):

{
    "page": 30,
    "limit": 30,
    "_embedded": {
        "items": [
            {
                // this is items[4]:
                "url": "https://www.newyorker.com/books/under-review/the-bullshit-job-boom",
                "published_by": [
                    [
                        "Nathan Heller"
                    ]
                ]
            }
        ]
    }
}

The WebUI displays this article like so:
image

@anarcat
Copy link

anarcat commented Sep 9, 2020

i am also getting this error on full sync, which is a big problem because it breaks sync for new devices completely... here is my backtrace:

https://paste.anarc.at/publish/2020-09-09-RbW8ARAMnriRw4H0UC6lLhQIigsd7HDkT2OpaxUDSf0/stdin.txt

it would be nice if wallabag at least handled that exception correctly...

@di72nn
Copy link
Member

di72nn commented Sep 10, 2020

This comment explains how to fix this.

@anarcat
Copy link

anarcat commented Sep 10, 2020

yeah, but that requires server access, which people might not necessarily have

@di72nn
Copy link
Member

di72nn commented Sep 10, 2020

Self-hosting users should be able to deal with it themselves. Users of hosted solutions (wallabag.it, etc.) should ask server administrator to deal with it. Am I missing some other category?

@anarcat
Copy link

anarcat commented Sep 10, 2020

i guess my argument is that even server admins might not be aware of the problem or might not clearly see how to fix it, because it's not part of release notes or documented other than in issues such as this one.

i'll also note that this issue is filed against the server side, and still open. I would argue it should be fixed by shipping a database migration that corrects this problem and wallabag/android-app#890

@j0k3r
Copy link
Member

j0k3r commented Dec 15, 2020

Both bug should be fixed with 2.4.0 I guess. Can someone confirm?

@solkaz
Copy link

solkaz commented Apr 2, 2021

@j0k3r @di72nn I still am encountering this issue on 2.4.2 (Pixel 3a, Android 11, using app.wallabag.it)

Edit: the published_by value in this case is

"published_by": [
  ""
],

The URL is https://baymard.com/blog/custom-dropdowns-cause-issues

@di72nn
Copy link
Member

di72nn commented Apr 2, 2021

I still am encountering this issue

It should be fine if you refetch the article.

I believe fetching is fixed, but the old data may still be broken.

@nicosomb
Copy link
Member

nicosomb commented Aug 1, 2023

@GeorgeHahn @di72nn hello. Could you try with latest wallabag version and tell us if this bug still occurs please?

@GeorgeHahn
Copy link
Author

Sorry, I don't use Wallabag anymore and will be unable to test this.

@nicosomb nicosomb closed this as completed Aug 2, 2023
@solkaz
Copy link

solkaz commented Aug 6, 2023

@nicosomb this issue still is present for me (edit: I am using app.wallabag.it)

@nicosomb nicosomb reopened this Aug 6, 2023
@virtadpt
Copy link

Still broken for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants