You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Crash after TTRSS update past commit 2adf364c2c: Caused by: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 84 path $.content.config
#451
Closed
aruberutsu opened this issue
May 21, 2021
· 3 comments
After upgrading TTRSS instance to commit 2adf364c2c or newer, TTRSS-Reader will crash on login with the following error:
2021-05-21 16:10:44.256 6613-6662/org.ttrssreader E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #3
Process: org.ttrssreader, PID: 6613
java.lang.RuntimeException: An error occurred while executing doInBackground()
at org.ttrssreader.utils.AsyncTask$4.done(AsyncTask.java:218)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
at java.util.concurrent.FutureTask.run(FutureTask.java:271)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
Caused by: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 84 path $.content.config
at com.google.gson.stream.JsonReader.nextString(JsonReader.java:826)
at org.ttrssreader.net.JSONConnector.readResult(JSONConnector.java:319)
at org.ttrssreader.net.JSONConnector.internalLogin(JSONConnector.java:526)
at org.ttrssreader.net.JSONConnector.sessionNotAlive(JSONConnector.java:451)
at org.ttrssreader.net.JSONConnector.getHeadlines(JSONConnector.java:978)
at org.ttrssreader.controllers.Data.cacheArticles(Data.java:168)
at org.ttrssreader.gui.CategoryActivity$CategoryUpdater.doInBackground(CategoryActivity.java:254)
at org.ttrssreader.gui.CategoryActivity$CategoryUpdater.doInBackground(CategoryActivity.java:227)
at org.ttrssreader.utils.AsyncTask$3.call(AsyncTask.java:199)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
Indeed, after applying this update, TTRSS returns a "config" object in the login message that TTRSS-Reader is not expecting:
Thanks for reporting, wouldn't have noticed it otherwise since I hardly ever think about updating the server at the moment...
I fixed it by parsing the config if it is provided, values are stored in Controller and in case of feed-icons url it is used if it differs from the configured value in the user preferences. In that case the outdated value in the preferences is also updated to avoid trouble later on, I guess if the server provides a value we can savely accept it.
* Fix#451: Crash because of changes in server, unexpected config object in login response
* Fix#450: Crash on initializing OkHttpClient, also removed async behavior on controller init
* Fix#448: Fix init of DB for new column "score"
After upgrading TTRSS instance to commit 2adf364c2c or newer, TTRSS-Reader will crash on login with the following error:
Indeed, after applying this update, TTRSS returns a "config" object in the login message that TTRSS-Reader is not expecting:
As a workaround, one can keep the server (or go back if accidentaly updated with git checkout) at 9f6237a1b8.
The text was updated successfully, but these errors were encountered: