emansih / FireflyMobile

Mobile Application for Firefly III written in Kotlin
GNU General Public License v3.0
323 stars 48 forks source link

App crashes if server returns 500 #51

Open zeridon opened 5 years ago

zeridon commented 5 years ago

Firefly III Server Version: 4.7.17 Firefly III Mobile Version: 1.3.2 Android Version:
7.0 Device Information:

Current Behavior

App crashes

Steps to Reproduce

Notes

Crash log from app


APP_VERSION_NAME=1.3.2
PHONE_MODEL=Moto G (4)
BRAND=motorola
PRODUCT=athene
ANDROID_VERSION=7.0
BUILD_CONFIG=
STACK_TRACE=java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String xyz.hisname.fireflyiii.repository.models.error.ErrorModel.getMessage()' on a null object reference
    at xyz.hisname.fireflyiii.b.g.t.a(CurrencyViewModel.kt:15)
    at xyz.hisname.fireflyiii.b.g.t.a(CurrencyViewModel.kt:1)
    at xyz.hisname.fireflyiii.util.c.a.a(CallbackUtil.kt:1)
    at j.n.run(ExecutorCallAdapterFactory.java:3)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6123)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)

LOGCAT=--------- beginning of main
06-07 17:06:55.712 I/art     (19522): Starting a blocking GC AddRemoveAppImageSpace
06-07 17:06:55.718 W/System  (19522): ClassLoader referenced unknown path: /data/app/xyz.hisname.fireflyiii-2/lib/arm
06-07 17:06:55.753 I/MultiDex(19522): VM with version 2.1.0 has multidex support
06-07 17:06:55.753 I/MultiDex(19522): Installing application
06-07 17:06:55.753 I/MultiDex(19522): VM has multidex support, MultiDex support library is disabled.
06-07 17:06:55.854 I/FloatingActionButton(19522): Setting a custom background is not supported.
06-07 17:06:55.933 I/ACRA    (19522): ACRA is enabled for xyz.hisname.fireflyiii, initializing...
06-07 17:06:55.940 D/NetworkSecurityConfig(19522): No Network Security Config specified, using platform default
06-07 17:06:55.948 I/MaterialDrawer(19522): You have not specified a ImageLoader implementation through the DrawerImageLoader.init() method, or you are still overriding the deprecated method set(ImageView iv, Uri u, Drawable d) instead of set(ImageView iv, Uri u, Drawable d, String tag)
06-07 17:06:56.055 W/art     (19522): Before Android 4.1, method double java.util.concurrent.ThreadLocalRandom.internalNextDouble(double, double) would have incorrectly overridden the package-private method in java.util.Random
06-07 17:06:56.055 W/art     (19522): Before Android 4.1, method int java.util.concurrent.ThreadLocalRandom.internalNextInt(int, int) would have incorrectly overridden the package-private method in java.util.Random
06-07 17:06:56.055 W/art     (19522): Before Android 4.1, method long java.util.concurrent.ThreadLocalRandom.internalNextLong(long, long) would have incorrectly overridden the package-private method in java.util.Random
06-07 17:06:56.141 I/FloatingActionButton(19522): Setting a custom background is not supported.
06-07 17:06:56.154 I/MaterialDrawer(19522): You have not specified a ImageLoader implementation through the DrawerImageLoader.init() method, or you are still overriding the deprecated method set(ImageView iv, Uri u, Drawable d) instead of set(ImageView iv, Uri u, Drawable d, String tag)
06-07 17:06:56.333 I/Adreno  (19522): QUALCOMM build                   : 7d18700, I8ee426a9a2
06-07 17:06:56.333 I/Adreno  (19522): Build Date                       : 10/07/16
06-07 17:06:56.333 I/Adreno  (19522): OpenGL ES Shader Compiler Version: XE031.09.00.03
06-07 17:06:56.333 I/Adreno  (19522): Local Branch                     : mybranch22308589
06-07 17:06:56.333 I/Adreno  (19522): Remote Branch                    : quic/LA.BR.1.3.6_rb1.6
06-07 17:06:56.333 I/Adreno  (19522): Remote Branch                    : NONE
06-07 17:06:56.333 I/Adreno  (19522): Reconstruct Branch               : NOTHING
06-07 17:06:56.346 I/OpenGLRenderer(19522): Initialized EGL, version 1.4
06-07 17:06:56.346 D/OpenGLRenderer(19522): Swap behavior 1
06-07 17:06:56.370 E/RecyclerView(19522): No adapter attached; skipping layout
06-07 17:06:56.638 D/AndroidRuntime(19522): Shutting down VM
06-07 17:06:56.641 E/ACRA    (19522): ACRA caught a NullPointerException for xyz.hisname.fireflyiii
06-07 17:06:56.641 E/ACRA    (19522): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String xyz.hisname.fireflyiii.repository.models.error.ErrorModel.getMessage()' on a null object reference
06-07 17:06:56.641 E/ACRA    (19522):   at xyz.hisname.fireflyiii.b.g.t.a(CurrencyViewModel.kt:15)
06-07 17:06:56.641 E/ACRA    (19522):   at xyz.hisname.fireflyiii.b.g.t.a(CurrencyViewModel.kt:1)
06-07 17:06:56.641 E/ACRA    (19522):   at xyz.hisname.fireflyiii.util.c.a.a(CallbackUtil.kt:1)
06-07 17:06:56.641 E/ACRA    (19522):   at j.n.run(ExecutorCallAdapterFactory.java:3)
06-07 17:06:56.641 E/ACRA    (19522):   at android.os.Handler.handleCallback(Handler.java:751)
06-07 17:06:56.641 E/ACRA    (19522):   at android.os.Handler.dispatchMessage(Handler.java:95)
06-07 17:06:56.641 E/ACRA    (19522):   at android.os.Looper.loop(Looper.java:154)
06-07 17:06:56.641 E/ACRA    (19522):   at android.app.ActivityThread.main(ActivityThread.java:6123)
06-07 17:06:56.641 E/ACRA    (19522):   at java.lang.reflect.Method.invoke(Native Method)
06-07 17:06:56.641 E/ACRA    (19522):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
06-07 17:06:56.641 E/ACRA    (19522):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
06-07 17:06:56.726 I/Process (19522): Sending signal. PID: 19522 SIG: 9
06-07 17:06:56.842 I/art     (19575): Starting a blocking GC AddRemoveAppImageSpace
06-07 17:06:56.845 W/System  (19575): ClassLoader referenced unknown path: /data/app/xyz.hisname.fireflyiii-2/lib/arm
06-07 17:06:56.874 I/MultiDex(19575): VM with version 2.1.0 has multidex support
06-07 17:06:56.874 I/MultiDex(19575): Installing application
06-07 17:06:56.874 I/MultiDex(19575): VM has multidex support, MultiDex support library is disabled.
06-07 17:06:56.925 I/ACRA    (19575): Sending report /data/user/0/xyz.hisname.fireflyiii/app_ACRA-approved/2019-06-07T17:06:56.651+03:00.stacktrace
06-07 17:08:51.326 I/art     (20258): Starting a blocking GC AddRemoveAppImageSpace
06-07 17:08:51.334 W/System  (20258): ClassLoader referenced unknown path: /data/app/xyz.hisname.fireflyiii-2/lib/arm
06-07 17:08:51.358 I/MultiDex(20258): VM with version 2.1.0 has multidex support
06-07 17:08:51.358 I/MultiDex(20258): Installing application
06-07 17:08:51.358 I/MultiDex(20258): VM has multidex support, MultiDex support library is disabled.
06-07 17:08:51.443 I/FloatingActionButton(20258): Setting a custom background is not supported.
06-07 17:08:51.513 D/NetworkSecurityConfig(20258): No Network Security Config specified, using platform default
06-07 17:08:51.529 I/MaterialDrawer(20258): You have not specified a ImageLoader implementation through the DrawerImageLoader.init() method, or you are still overriding the deprecated method set(ImageView iv, Uri u, Drawable d) instead of set(ImageView iv, Uri u, Drawable d, String tag)
06-07 17:08:51.562 I/ACRA    (20258): ACRA is enabled for xyz.hisname.fireflyiii, initializing...
06-07 17:08:51.651 W/art     (20258): Before Android 4.1, method double java.util.concurrent.ThreadLocalRandom.internalNextDouble(double, double) would have incorrectly overridden the package-private method in java.util.Random
06-07 17:08:51.651 W/art     (20258): Before Android 4.1, method int java.util.concurrent.ThreadLocalRandom.internalNextInt(int, int) would have incorrectly overridden the package-private method in java.util.Random
06-07 17:08:51.651 W/art     (20258): Before Android 4.1, method long java.util.concurrent.ThreadLocalRandom.internalNextLong(long, long) would have incorrectly overridden the package-private method in java.util.Random
06-07 17:08:51.731 I/FloatingActionButton(20258): Setting a custom background is not supported.
06-07 17:08:51.746 I/MaterialDrawer(20258): You have not specified a ImageLoader implementation through the DrawerImageLoader.init() method, or you are still overriding the deprecated method set(ImageView iv, Uri u, Drawable d) instead of set(ImageView iv, Uri u, Drawable d, String tag)
06-07 17:08:51.925 I/Adreno  (20258): QUALCOMM build                   : 7d18700, I8ee426a9a2
06-07 17:08:51.925 I/Adreno  (20258): Build Date                       : 10/07/16
06-07 17:08:51.925 I/Adreno  (20258): OpenGL ES Shader Compiler Version: XE031.09.00.03
06-07 17:08:51.925 I/Adreno  (20258): Local Branch                     : mybranch22308589
06-07 17:08:51.925 I/Adreno  (20258): Remote Branch                    : quic/LA.BR.1.3.6_rb1.6
06-07 17:08:51.925 I/Adreno  (20258): Remote Branch                    : NONE
06-07 17:08:51.925 I/Adreno  (20258): Reconstruct Branch               : NOTHING
06-07 17:08:51.940 I/OpenGLRenderer(20258): Initialized EGL, version 1.4
06-07 17:08:51.940 D/OpenGLRenderer(20258): Swap behavior 1
06-07 17:08:51.966 E/RecyclerView(20258): No adapter attached; skipping layout
06-07 17:08:52.081 D/AndroidRuntime(20258): Shutting down VM
06-07 17:08:52.082 E/ACRA    (20258): ACRA caught a NullPointerException for xyz.hisname.fireflyiii
06-07 17:08:52.082 E/ACRA    (20258): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String xyz.hisname.fireflyiii.repository.models.error.ErrorModel.getMessage()' on a null object reference
06-07 17:08:52.082 E/ACRA    (20258):   at xyz.hisname.fireflyiii.b.g.t.a(CurrencyViewModel.kt:15)
06-07 17:08:52.082 E/ACRA    (20258):   at xyz.hisname.fireflyiii.b.g.t.a(CurrencyViewModel.kt:1)
06-07 17:08:52.082 E/ACRA    (20258):   at xyz.hisname.fireflyiii.util.c.a.a(CallbackUtil.kt:1)
06-07 17:08:52.082 E/ACRA    (20258):   at j.n.run(ExecutorCallAdapterFactory.java:3)
06-07 17:08:52.082 E/ACRA    (20258):   at android.os.Handler.handleCallback(Handler.java:751)
06-07 17:08:52.082 E/ACRA    (20258):   at android.os.Handler.dispatchMessage(Handler.java:95)
06-07 17:08:52.082 E/ACRA    (20258):   at android.os.Looper.loop(Looper.java:154)
06-07 17:08:52.082 E/ACRA    (20258):   at android.app.ActivityThread.main(ActivityThread.java:6123)
06-07 17:08:52.082 E/ACRA    (20258):   at java.lang.reflect.Method.invoke(Native Method)
06-07 17:08:52.082 E/ACRA    (20258):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
06-07 17:08:52.082 E/ACRA    (20258):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)

IS_SILENT=false
USER_CRASH_DATE=2019-06-07T17:08:52.108+03:00```
emansih commented 5 years ago

Yes I consider this a bug as offline first has always and will always be the goal.

emansih commented 5 years ago

P.S. Firefly III is on v4.7.17

zeridon commented 5 years ago

Yes latest

On Fri, Jun 7, 2019, 17:57 Daniel Quah notifications@github.com wrote:

P.S. Firefly III is on v4.7.17

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/emansih/FireflyMobile/issues/51?email_source=notifications&email_token=ABGYWB3AP4Z33N5JEMMOKKDPZJZN5A5CNFSM4HVXW5R2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXGCJIY#issuecomment-499917987, or mute the thread https://github.com/notifications/unsubscribe-auth/ABGYWBZKHLBIVGJREUB3YCDPZJZN5ANCNFSM4HVXW5RQ .

emansih commented 5 years ago

sorry, mistaken your Firefly III version

emansih commented 5 years ago

Thanks for the bug report. Try the latest update and do tell me if you still see this bug.

zeridon commented 5 years ago

Still crashes but seems in different place

Notes:

nginx access log

[09/Jun/2019:19:04:23 +0000] "GET /api/v1/currencies?page=1 HTTP/1.1" 500 186 "-" "xyz.hisname.fireflyiii"
[09/Jun/2019:19:04:23 +0000] "GET /api/v1/transactions?start=&end=&type=all&page=1 HTTP/1.1" 500 186 "-" "xyz.hisname.fireflyiii"
[09/Jun/2019:19:04:23 +0000] "GET /api/v1/currencies?page=1 HTTP/1.1" 500 186 "-" "xyz.hisname.fireflyiii"
[09/Jun/2019:19:04:23 +0000] "GET /api/v1/currencies?page=1 HTTP/1.1" 500 186 "-" "xyz.hisname.fireflyiii"
[09/Jun/2019:19:04:24 +0000] "GET /api/v1/transactions?start=&end=&type=all&page=1 HTTP/1.1" 500 186 "-" "xyz.hisname.fireflyiii"

Stacktrace


APP_VERSION_NAME=1.3.3
PHONE_MODEL=Moto G (4)
BRAND=motorola
PRODUCT=athene
ANDROID_VERSION=7.0
BUILD_CONFIG=
STACK_TRACE=b.d.c.E: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$a.a(ReflectiveTypeAdapterFactory.java:13)
    at b.d.c.q.a(Gson.java:101)
    at b.d.c.q.a(Gson.java:90)
    at b.d.c.q.a(Gson.java:88)
    at b.d.c.q.a(Gson.java:85)
    at xyz.hisname.fireflyiii.b.g.t.a(CurrencyViewModel.kt:14)
    at xyz.hisname.fireflyiii.b.g.t.a(CurrencyViewModel.kt:1)
    at xyz.hisname.fireflyiii.util.c.a.a(CallbackUtil.kt:1)
    at i.l.run(DefaultCallAdapterFactory.java:3)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6123)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
    at b.d.c.c.b.s(JsonReader.java:5)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$a.a(ReflectiveTypeAdapterFactory.java:4)
    ... 15 more

LOGCAT=06-09 21:46:55.736 E/ACRA    (20927):    at android.app.ActivityThread.main(ActivityThread.java:6123)
06-09 21:46:55.736 E/ACRA    (20927):   at java.lang.reflect.Method.invoke(Native Method)
06-09 21:46:55.736 E/ACRA    (20927):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
06-09 21:46:55.736 E/ACRA    (20927):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
06-09 21:46:55.736 E/ACRA    (20927): Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
06-09 21:46:55.736 E/ACRA    (20927):   at b.d.c.c.b.s(JsonReader.java:5)
06-09 21:46:55.736 E/ACRA    (20927):   at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$a.a(ReflectiveTypeAdapterFactory.java:4)
06-09 21:46:55.736 E/ACRA    (20927):   ... 15 more
06-09 21:46:55.844 I/Process (20927): Sending signal. PID: 20927 SIG: 9
06-09 21:46:55.892 W/System  (20978): ClassLoader referenced unknown path: /data/app/xyz.hisname.fireflyiii-2/lib/arm
06-09 21:46:55.926 I/MultiDex(20978): VM with version 2.1.0 has multidex support
06-09 21:46:55.926 I/MultiDex(20978): Installing application
06-09 21:46:55.926 I/MultiDex(20978): VM has multidex support, MultiDex support library is disabled.
06-09 21:46:55.997 I/ACRA    (20978): Sending report /data/user/0/xyz.hisname.fireflyiii/app_ACRA-approved/2019-06-09T21:46:55.746+03:00.stacktrace
06-09 21:47:06.476 W/System  (21337): ClassLoader referenced unknown path: /data/app/xyz.hisname.fireflyiii-2/lib/arm
06-09 21:47:06.515 I/MultiDex(21337): VM with version 2.1.0 has multidex support
06-09 21:47:06.515 I/MultiDex(21337): Installing application
06-09 21:47:06.515 I/MultiDex(21337): VM has multidex support, MultiDex support library is disabled.
06-09 21:47:06.691 I/FloatingActionButton(21337): Setting a custom background is not supported.
06-09 21:47:06.719 I/ACRA    (21337): ACRA is enabled for xyz.hisname.fireflyiii, initializing...
06-09 21:47:06.801 D/NetworkSecurityConfig(21337): No Network Security Config specified, using platform default
06-09 21:47:06.813 I/MaterialDrawer(21337): You have not specified a ImageLoader implementation through the DrawerImageLoader.init() method, or you are still overriding the deprecated method set(ImageView iv, Uri u, Drawable d) instead of set(ImageView iv, Uri u, Drawable d, String tag)
06-09 21:47:07.021 W/art     (21337): Before Android 4.1, method double java.util.concurrent.ThreadLocalRandom.internalNextDouble(double, double) would have incorrectly overridden the package-private method in java.util.Random
06-09 21:47:07.021 W/art     (21337): Before Android 4.1, method int java.util.concurrent.ThreadLocalRandom.internalNextInt(int, int) would have incorrectly overridden the package-private method in java.util.Random
06-09 21:47:07.021 W/art     (21337): Before Android 4.1, method long java.util.concurrent.ThreadLocalRandom.internalNextLong(long, long) would have incorrectly overridden the package-private method in java.util.Random
06-09 21:47:07.176 I/art     (21337): Do partial code cache collection, code=30KB, data=30KB
06-09 21:47:07.177 I/art     (21337): After code cache collection, code=30KB, data=30KB
06-09 21:47:07.177 I/art     (21337): Increasing code cache capacity to 128KB
06-09 21:47:07.317 I/art     (21337): Do partial code cache collection, code=43KB, data=57KB
06-09 21:47:07.319 I/art     (21337): After code cache collection, code=43KB, data=57KB
06-09 21:47:07.319 I/art     (21337): Increasing code cache capacity to 256KB
06-09 21:47:07.476 I/Adreno  (21337): QUALCOMM build                   : 7d18700, I8ee426a9a2
06-09 21:47:07.476 I/Adreno  (21337): Build Date                       : 10/07/16
06-09 21:47:07.476 I/Adreno  (21337): OpenGL ES Shader Compiler Version: XE031.09.00.03
06-09 21:47:07.476 I/Adreno  (21337): Local Branch                     : mybranch22308589
06-09 21:47:07.476 I/Adreno  (21337): Remote Branch                    : quic/LA.BR.1.3.6_rb1.6
06-09 21:47:07.476 I/Adreno  (21337): Remote Branch                    : NONE
06-09 21:47:07.476 I/Adreno  (21337): Reconstruct Branch               : NOTHING
06-09 21:47:07.483 I/OpenGLRenderer(21337): Initialized EGL, version 1.4
06-09 21:47:07.483 D/OpenGLRenderer(21337): Swap behavior 1
06-09 21:47:07.595 E/RecyclerView(21337): No adapter attached; skipping layout
06-09 21:47:07.731 E/AppCompatDelegate(21337): updateForNightMode. Calling applyOverrideConfiguration() failed with an exception. Will fall back to using Resources.updateConfiguration()
06-09 21:47:07.731 E/AppCompatDelegate(21337): java.lang.IllegalStateException: Override configuration has already been set
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at android.view.ContextThemeWrapper.applyOverrideConfiguration(ContextThemeWrapper.java:99)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at xyz.hisname.fireflyiii.ui.base.c.applyOverrideConfiguration(BaseActivity.kt:1)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at androidx.appcompat.app.z.b(AppCompatDelegateImpl.java:150)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at androidx.appcompat.app.z.a(AppCompatDelegateImpl.java:212)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at androidx.appcompat.app.z.a(AppCompatDelegateImpl.java:30)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at androidx.appcompat.app.o.onConfigurationChanged(AppCompatActivity.java:5)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at xyz.hisname.fireflyiii.ui.base.c.onConfigurationChanged(BaseActivity.kt:1)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at xyz.hisname.fireflyiii.ui.base.c.applyOverrideConfiguration(BaseActivity.kt:2)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at androidx.appcompat.app.z.b(AppCompatDelegateImpl.java:150)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at androidx.appcompat.app.z.a(AppCompatDelegateImpl.java:212)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at androidx.appcompat.app.z.a(AppCompatDelegateImpl.java:1)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at androidx.appcompat.app.o.attachBaseContext(AppCompatActivity.java:2)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at xyz.hisname.fireflyiii.ui.base.c.attachBaseContext(BaseActivity.kt:3)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at android.app.Activity.attach(Activity.java:6608)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2593)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2724)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4524)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at android.app.ActivityThread.-wrap19(ActivityThread.java)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1479)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at android.os.Handler.dispatchMessage(Handler.java:102)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at android.os.Looper.loop(Looper.java:154)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at android.app.ActivityThread.main(ActivityThread.java:6123)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at java.lang.reflect.Method.invoke(Native Method)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
06-09 21:47:07.731 E/AppCompatDelegate(21337):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
06-09 21:47:07.758 I/FloatingActionButton(21337): Setting a custom background is not supported.
06-09 21:47:07.778 I/MaterialDrawer(21337): You have not specified a ImageLoader implementation through the DrawerImageLoader.init() method, or you are still overriding the deprecated method set(ImageView iv, Uri u, Drawable d) instead of set(ImageView iv, Uri u, Drawable d, String tag)
06-09 21:47:07.786 I/art     (21337): Do full code cache collection, code=113KB, data=124KB
06-09 21:47:07.788 I/art     (21337): After code cache collection, code=84KB, data=77KB
06-09 21:47:08.022 I/Choreographer(21337): Skipped 52 frames!  The application may be doing too much work on its main thread.
06-09 21:47:08.166 E/RecyclerView(21337): No adapter attached; skipping layout
06-09 21:47:08.254 I/art     (21337): Do partial code cache collection, code=115KB, data=125KB
06-09 21:47:08.256 I/art     (21337): After code cache collection, code=91KB, data=105KB
06-09 21:47:08.256 I/art     (21337): Increasing code cache capacity to 512KB
06-09 21:47:08.257 D/AndroidRuntime(21337): Shutting down VM
06-09 21:47:08.258 E/ACRA    (21337): ACRA caught a E for xyz.hisname.fireflyiii
06-09 21:47:08.258 E/ACRA    (21337): b.d.c.E: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
06-09 21:47:08.258 E/ACRA    (21337):   at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$a.a(ReflectiveTypeAdapterFactory.java:13)
06-09 21:47:08.258 E/ACRA    (21337):   at b.d.c.q.a(Gson.java:101)
06-09 21:47:08.258 E/ACRA    (21337):   at b.d.c.q.a(Gson.java:90)
06-09 21:47:08.258 E/ACRA    (21337):   at b.d.c.q.a(Gson.java:88)
06-09 21:47:08.258 E/ACRA    (21337):   at b.d.c.q.a(Gson.java:85)
06-09 21:47:08.258 E/ACRA    (21337):   at xyz.hisname.fireflyiii.b.g.t.a(CurrencyViewModel.kt:14)
06-09 21:47:08.258 E/ACRA    (21337):   at xyz.hisname.fireflyiii.b.g.t.a(CurrencyViewModel.kt:1)
06-09 21:47:08.258 E/ACRA    (21337):   at xyz.hisname.fireflyiii.util.c.a.a(CallbackUtil.kt:1)
06-09 21:47:08.258 E/ACRA    (21337):   at i.l.run(DefaultCallAdapterFactory.java:3)
06-09 21:47:08.258 E/ACRA    (21337):   at android.os.Handler.handleCallback(Handler.java:751)
06-09 21:47:08.258 E/ACRA    (21337):   at android.os.Handler.dispatchMessage(Handler.java:95)
06-09 21:47:08.258 E/ACRA    (21337):   at android.os.Looper.loop(Looper.java:154)
06-09 21:47:08.258 E/ACRA    (21337):   at android.app.ActivityThread.main(ActivityThread.java:6123)
06-09 21:47:08.258 E/ACRA    (21337):   at java.lang.reflect.Method.invoke(Native Method)
06-09 21:47:08.258 E/ACRA    (21337):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
06-09 21:47:08.258 E/ACRA    (21337):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
06-09 21:47:08.258 E/ACRA    (21337): Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
06-09 21:47:08.258 E/ACRA    (21337):   at b.d.c.c.b.s(JsonReader.java:5)
06-09 21:47:08.258 E/ACRA    (21337):   at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$a.a(ReflectiveTypeAdapterFactory.java:4)
06-09 21:47:08.258 E/ACRA    (21337):   ... 15 more
IS_SILENT=false
USER_CRASH_DATE=2019-06-09T21:47:08.274+03:00```
emansih commented 5 years ago

Hi, could you test this apk? Thank you.

https://drive.google.com/open?id=1Q8T_POzt8xYQMJlfqMzzXWXSZnVBUD9a

zeridon commented 5 years ago

Still crashing

REPORT_ID=6842aace-e084-41aa-8fc1-294bc353598a
APP_VERSION_NAME=1.3.3
PHONE_MODEL=Moto G (4)
BRAND=motorola
PRODUCT=athene
ANDROID_VERSION=7.0
BUILD_CONFIG=
STACK_TRACE=b.d.c.E: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$a.a(ReflectiveTypeAdapterFactory.java:13)
    at b.d.c.q.a(Gson.java:101)
    at b.d.c.q.a(Gson.java:90)
    at b.d.c.q.a(Gson.java:88)
    at b.d.c.q.a(Gson.java:85)
    at xyz.hisname.fireflyiii.b.g.t.a(CurrencyViewModel.kt:14)
    at xyz.hisname.fireflyiii.b.g.t.a(CurrencyViewModel.kt:1)
    at xyz.hisname.fireflyiii.util.c.a.a(CallbackUtil.kt:1)
    at i.l.run(DefaultCallAdapterFactory.java:3)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6123)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
    at b.d.c.c.b.s(JsonReader.java:5)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$a.a(ReflectiveTypeAdapterFactory.java:4)
    ... 15 more

LOGCAT=--------- beginning of main
06-10 17:33:32.220 W/System  (27178): ClassLoader referenced unknown path: /data/app/xyz.hisname.fireflyiii-1/lib/arm
06-10 17:33:32.266 I/MultiDex(27178): VM with version 2.1.0 has multidex support
06-10 17:33:32.266 I/MultiDex(27178): Installing application
06-10 17:33:32.266 I/MultiDex(27178): VM has multidex support, MultiDex support library is disabled.
06-10 17:33:32.428 I/FloatingActionButton(27178): Setting a custom background is not supported.
06-10 17:33:32.476 I/ACRA    (27178): ACRA is enabled for xyz.hisname.fireflyiii, initializing...
06-10 17:33:32.601 D/NetworkSecurityConfig(27178): No Network Security Config specified, using platform default
06-10 17:33:32.615 I/MaterialDrawer(27178): You have not specified a ImageLoader implementation through the DrawerImageLoader.init() method, or you are still overriding the deprecated method set(ImageView iv, Uri u, Drawable d) instead of set(ImageView iv, Uri u, Drawable d, String tag)
06-10 17:33:32.848 W/art     (27178): Before Android 4.1, method double java.util.concurrent.ThreadLocalRandom.internalNextDouble(double, double) would have incorrectly overridden the package-private method in java.util.Random
06-10 17:33:32.848 W/art     (27178): Before Android 4.1, method int java.util.concurrent.ThreadLocalRandom.internalNextInt(int, int) would have incorrectly overridden the package-private method in java.util.Random
06-10 17:33:32.848 W/art     (27178): Before Android 4.1, method long java.util.concurrent.ThreadLocalRandom.internalNextLong(long, long) would have incorrectly overridden the package-private method in java.util.Random
06-10 17:33:33.002 I/art     (27178): Do partial code cache collection, code=31KB, data=30KB
06-10 17:33:33.003 I/art     (27178): After code cache collection, code=31KB, data=30KB
06-10 17:33:33.003 I/art     (27178): Increasing code cache capacity to 128KB
06-10 17:33:33.122 I/art     (27178): Do partial code cache collection, code=43KB, data=56KB
06-10 17:33:33.123 I/art     (27178): After code cache collection, code=43KB, data=56KB
06-10 17:33:33.123 I/art     (27178): Increasing code cache capacity to 256KB
06-10 17:33:33.281 I/Adreno  (27178): QUALCOMM build                   : 7d18700, I8ee426a9a2
06-10 17:33:33.281 I/Adreno  (27178): Build Date                       : 10/07/16
06-10 17:33:33.281 I/Adreno  (27178): OpenGL ES Shader Compiler Version: XE031.09.00.03
06-10 17:33:33.281 I/Adreno  (27178): Local Branch                     : mybranch22308589
06-10 17:33:33.281 I/Adreno  (27178): Remote Branch                    : quic/LA.BR.1.3.6_rb1.6
06-10 17:33:33.281 I/Adreno  (27178): Remote Branch                    : NONE
06-10 17:33:33.281 I/Adreno  (27178): Reconstruct Branch               : NOTHING
06-10 17:33:33.291 I/OpenGLRenderer(27178): Initialized EGL, version 1.4
06-10 17:33:33.291 D/OpenGLRenderer(27178): Swap behavior 1
06-10 17:33:33.382 E/RecyclerView(27178): No adapter attached; skipping layout
06-10 17:33:33.475 I/Choreographer(27178): Skipped 30 frames!  The application may be doing too much work on its main thread.
06-10 17:33:33.550 I/art     (27178): Do full code cache collection, code=111KB, data=125KB
06-10 17:33:33.552 I/art     (27178): After code cache collection, code=80KB, data=80KB
06-10 17:33:34.138 I/art     (27178): Do partial code cache collection, code=111KB, data=125KB
06-10 17:33:34.139 I/art     (27178): After code cache collection, code=111KB, data=125KB
06-10 17:33:34.139 I/art     (27178): Increasing code cache capacity to 512KB
06-10 17:33:42.728 W/PropertyValuesHolder(27178): Method setPhaseY() with type float not found on target class class b.c.a.a.a.a
06-10 17:33:43.012 I/art     (27178): Do full code cache collection, code=216KB, data=251KB
06-10 17:33:43.013 I/art     (27178): After code cache collection, code=192KB, data=216KB
06-10 17:33:46.304 I/art     (27178): Do partial code cache collection, code=209KB, data=244KB
06-10 17:33:46.305 I/art     (27178): After code cache collection, code=209KB, data=244KB
06-10 17:33:46.305 I/art     (27178): Increasing code cache capacity to 1024KB
06-10 17:35:09.924 W/System  (27804): ClassLoader referenced unknown path: /data/app/xyz.hisname.fireflyiii-1/lib/arm
06-10 17:35:09.966 I/MultiDex(27804): VM with version 2.1.0 has multidex support
06-10 17:35:09.966 I/MultiDex(27804): Installing application
06-10 17:35:09.966 I/MultiDex(27804): VM has multidex support, MultiDex support library is disabled.
06-10 17:35:10.097 I/FloatingActionButton(27804): Setting a custom background is not supported.
06-10 17:35:10.144 I/ACRA    (27804): ACRA is enabled for xyz.hisname.fireflyiii, initializing...
06-10 17:35:10.214 D/NetworkSecurityConfig(27804): No Network Security Config specified, using platform default
06-10 17:35:10.225 I/MaterialDrawer(27804): You have not specified a ImageLoader implementation through the DrawerImageLoader.init() method, or you are still overriding the deprecated method set(ImageView iv, Uri u, Drawable d) instead of set(ImageView iv, Uri u, Drawable d, String tag)
06-10 17:35:10.432 W/art     (27804): Before Android 4.1, method double java.util.concurrent.ThreadLocalRandom.internalNextDouble(double, double) would have incorrectly overridden the package-private method in java.util.Random
06-10 17:35:10.432 W/art     (27804): Before Android 4.1, method int java.util.concurrent.ThreadLocalRandom.internalNextInt(int, int) would have incorrectly overridden the package-private method in java.util.Random
06-10 17:35:10.432 W/art     (27804): Before Android 4.1, method long java.util.concurrent.ThreadLocalRandom.internalNextLong(long, long) would have incorrectly overridden the package-private method in java.util.Random
06-10 17:35:10.591 I/art     (27804): Do partial code cache collection, code=30KB, data=30KB
06-10 17:35:10.594 I/art     (27804): After code cache collection, code=30KB, data=30KB
06-10 17:35:10.594 I/art     (27804): Increasing code cache capacity to 128KB
06-10 17:35:10.725 I/art     (27804): Do partial code cache collection, code=43KB, data=56KB
06-10 17:35:10.726 I/art     (27804): After code cache collection, code=43KB, data=56KB
06-10 17:35:10.726 I/art     (27804): Increasing code cache capacity to 256KB
06-10 17:35:10.886 I/Adreno  (27804): QUALCOMM build                   : 7d18700, I8ee426a9a2
06-10 17:35:10.886 I/Adreno  (27804): Build Date                       : 10/07/16
06-10 17:35:10.886 I/Adreno  (27804): OpenGL ES Shader Compiler Version: XE031.09.00.03
06-10 17:35:10.886 I/Adreno  (27804): Local Branch                     : mybranch22308589
06-10 17:35:10.886 I/Adreno  (27804): Remote Branch                    : quic/LA.BR.1.3.6_rb1.6
06-10 17:35:10.886 I/Adreno  (27804): Remote Branch                    : NONE
06-10 17:35:10.886 I/Adreno  (27804): Reconstruct Branch               : NOTHING
06-10 17:35:10.894 I/OpenGLRenderer(27804): Initialized EGL, version 1.4
06-10 17:35:10.894 D/OpenGLRenderer(27804): Swap behavior 1
06-10 17:35:10.976 E/RecyclerView(27804): No adapter attached; skipping layout
06-10 17:35:11.077 I/Choreographer(27804): Skipped 30 frames!  The application may be doing too much work on its main thread.
06-10 17:35:11.142 I/art     (27804): Do full code cache collection, code=108KB, data=123KB
06-10 17:35:11.143 I/art     (27804): After code cache collection, code=78KB, data=79KB
06-10 17:35:12.266 D/AndroidRuntime(27804): Shutting down VM
06-10 17:35:12.266 E/ACRA    (27804): ACRA caught a E for xyz.hisname.fireflyiii
06-10 17:35:12.266 E/ACRA    (27804): b.d.c.E: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
06-10 17:35:12.266 E/ACRA    (27804):   at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$a.a(ReflectiveTypeAdapterFactory.java:13)
06-10 17:35:12.266 E/ACRA    (27804):   at b.d.c.q.a(Gson.java:101)
06-10 17:35:12.266 E/ACRA    (27804):   at b.d.c.q.a(Gson.java:90)
06-10 17:35:12.266 E/ACRA    (27804):   at b.d.c.q.a(Gson.java:88)
06-10 17:35:12.266 E/ACRA    (27804):   at b.d.c.q.a(Gson.java:85)
06-10 17:35:12.266 E/ACRA    (27804):   at xyz.hisname.fireflyiii.b.g.t.a(CurrencyViewModel.kt:14)
06-10 17:35:12.266 E/ACRA    (27804):   at xyz.hisname.fireflyiii.b.g.t.a(CurrencyViewModel.kt:1)
06-10 17:35:12.266 E/ACRA    (27804):   at xyz.hisname.fireflyiii.util.c.a.a(CallbackUtil.kt:1)
06-10 17:35:12.266 E/ACRA    (27804):   at i.l.run(DefaultCallAdapterFactory.java:3)
06-10 17:35:12.266 E/ACRA    (27804):   at android.os.Handler.handleCallback(Handler.java:751)
06-10 17:35:12.266 E/ACRA    (27804):   at android.os.Handler.dispatchMessage(Handler.java:95)
06-10 17:35:12.266 E/ACRA    (27804):   at android.os.Looper.loop(Looper.java:154)
06-10 17:35:12.266 E/ACRA    (27804):   at android.app.ActivityThread.main(ActivityThread.java:6123)
06-10 17:35:12.266 E/ACRA    (27804):   at java.lang.reflect.Method.invoke(Native Method)
06-10 17:35:12.266 E/ACRA    (27804):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
06-10 17:35:12.266 E/ACRA    (27804):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
06-10 17:35:12.266 E/ACRA    (27804): Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
06-10 17:35:12.266 E/ACRA    (27804):   at b.d.c.c.b.s(JsonReader.java:5)
06-10 17:35:12.266 E/ACRA    (27804):   at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$a.a(ReflectiveTypeAdapterFactory.java:4)
06-10 17:35:12.266 E/ACRA    (27804):   ... 15 more

IS_SILENT=false
USER_CRASH_DATE=2019-06-10T17:35:12.279+03:00
emansih commented 5 years ago

Are you able to dump your currency table for me to take a look?

zeridon commented 5 years ago
MariaDB [money]> select * from transaction_currencies;
+----+---------------------+---------------------+------------+---------+------+---------------------------+--------+----------------+
| id | created_at          | updated_at          | deleted_at | enabled | code | name                      | symbol | decimal_places |
+----+---------------------+---------------------+------------+---------+------+---------------------------+--------+----------------+
|  1 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       1 | EUR  | Euro                      | €      |              2 |
|  2 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | HUF  | Hungarian forint          | Ft     |              2 |
|  3 | 2019-04-18 14:04:13 | 2019-04-18 14:20:45 | NULL       |       1 | GBP  | British Pound             | £      |              2 |
|  4 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | UAH  | Ukrainian hryvnia         | ₴      |              2 |
|  5 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | PLN  | Polish złoty              | zł     |              2 |
|  6 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | TRY  | Turkish lira              | ₺      |              2 |
|  7 | 2019-04-18 14:04:13 | 2019-04-18 14:20:49 | NULL       |       1 | USD  | US Dollar                 | $      |              2 |
|  8 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | BRL  | Brazilian real            | R$     |              2 |
|  9 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | CAD  | Canadian dollar           | C$     |              2 |
| 10 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | IDR  | Indonesian rupiah         | Rp     |              2 |
| 11 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | AUD  | Australian dollar         | A$     |              2 |
| 12 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | NZD  | New Zealand dollar        | NZ$    |              2 |
| 13 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | EGP  | Egyptian pound            | E£     |              2 |
| 14 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | MAD  | Moroccan dirham           | DH     |              2 |
| 15 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | ZAR  | South African rand        | R      |              2 |
| 16 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | JPY  | Japanese yen              | ¥      |              2 |
| 17 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | RMB  | Chinese yuan              | 元     |              2 |
| 18 | 2019-04-18 14:04:13 | 2019-04-18 16:05:42 | NULL       |       1 | RUB  | Russian ruble             | ₽      |              2 |
| 19 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | INR  | Indian rupee              | ₹      |              2 |
| 20 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | XBT  | Bitcoin                   | ₿      |              8 |
| 21 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | BCH  | Bitcoin cash              | ₿C     |              8 |
| 22 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | ETH  | Ethereum                  | Ξ      |             12 |
| 23 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | ILS  | Israeli new shekel        | ₪      |              2 |
| 24 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | CHF  | Swiss franc               | CHF    |              2 |
| 25 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       0 | HRK  | Croatian kuna             | kn     |              2 |
| 51 | 2019-04-18 14:20:31 | 2019-04-18 17:11:41 | NULL       |       1 | BGN  | Български Лев             | лв.    |              2 |
+----+---------------------+---------------------+------------+---------+------+---------------------------+--------+----------------+
26 rows in set (0.00 sec)

MariaDB [money]> select * from transaction_currencies where enabled=1;
+----+---------------------+---------------------+------------+---------+------+---------------------------+--------+----------------+
| id | created_at          | updated_at          | deleted_at | enabled | code | name                      | symbol | decimal_places |
+----+---------------------+---------------------+------------+---------+------+---------------------------+--------+----------------+
|  1 | 2019-04-18 14:04:13 | 2019-04-18 14:04:13 | NULL       |       1 | EUR  | Euro                      | €      |              2 |
|  3 | 2019-04-18 14:04:13 | 2019-04-18 14:20:45 | NULL       |       1 | GBP  | British Pound             | £      |              2 |
|  7 | 2019-04-18 14:04:13 | 2019-04-18 14:20:49 | NULL       |       1 | USD  | US Dollar                 | $      |              2 |
| 18 | 2019-04-18 14:04:13 | 2019-04-18 16:05:42 | NULL       |       1 | RUB  | Russian ruble             | ₽      |              2 |
| 51 | 2019-04-18 14:20:31 | 2019-04-18 17:11:41 | NULL       |       1 | BGN  | Български Лев             | лв.    |              2 |
+----+---------------------+---------------------+------------+---------+------+---------------------------+--------+----------------+
emansih commented 5 years ago

ok can you use curl to get the output.

curl -X GET "https://YOUR_SERVER_URL_HERE/api/v1/currencies?page=1" -H "accept: application/json" -H "Authorization: Bearer YOUR_PAT_TOKEN_OR_OAUTH_TOKEN_HERE"
zeridon commented 5 years ago
{
  "data": [
    {
      "type": "currencies",
      "id": "11",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Australian dollar",
        "code": "AUD",
        "symbol": "A$",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/11"
        },
        "self": "https://money.site.com/api/v1/currencies/11"
      }
    },
    {
      "type": "currencies",
      "id": "21",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Bitcoin cash",
        "code": "BCH",
        "symbol": "₿C",
        "decimal_places": 8
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/21"
        },
        "self": "https://money.site.com/api/v1/currencies/21"
      }
    },
    {
      "type": "currencies",
      "id": "51",
      "attributes": {
        "created_at": "2019-04-18T14:20:31+03:00",
        "updated_at": "2019-06-11T13:33:59+03:00",
        "default": true,
        "enabled": true,
        "name": "Български Лев",
        "code": "BGN",
        "symbol": "лв.",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/51"
        },
        "self": "https://money.site.com/api/v1/currencies/51"
      }
    },
    {
      "type": "currencies",
      "id": "8",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Brazilian real",
        "code": "BRL",
        "symbol": "R$",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/8"
        },
        "self": "https://money.site.com/api/v1/currencies/8"
      }
    },
    {
      "type": "currencies",
      "id": "9",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Canadian dollar",
        "code": "CAD",
        "symbol": "C$",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/9"
        },
        "self": "https://money.site.com/api/v1/currencies/9"
      }
    },
    {
      "type": "currencies",
      "id": "24",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Swiss franc",
        "code": "CHF",
        "symbol": "CHF",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/24"
        },
        "self": "https://money.site.com/api/v1/currencies/24"
      }
    },
    {
      "type": "currencies",
      "id": "13",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Egyptian pound",
        "code": "EGP",
        "symbol": "E£",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/13"
        },
        "self": "https://money.site.com/api/v1/currencies/13"
      }
    },
    {
      "type": "currencies",
      "id": "22",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Ethereum",
        "code": "ETH",
        "symbol": "Ξ",
        "decimal_places": 12
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/22"
        },
        "self": "https://money.site.com/api/v1/currencies/22"
      }
    },
    {
      "type": "currencies",
      "id": "1",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-06-11T13:33:59+03:00",
        "default": false,
        "enabled": true,
        "name": "Euro",
        "code": "EUR",
        "symbol": "€",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/1"
        },
        "self": "https://money.site.com/api/v1/currencies/1"
      }
    },
    {
      "type": "currencies",
      "id": "3",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-06-11T13:33:59+03:00",
        "default": false,
        "enabled": true,
        "name": "British Pound",
        "code": "GBP",
        "symbol": "£",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/3"
        },
        "self": "https://money.site.com/api/v1/currencies/3"
      }
    },
    {
      "type": "currencies",
      "id": "25",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Croatian kuna",
        "code": "HRK",
        "symbol": "kn",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/25"
        },
        "self": "https://money.site.com/api/v1/currencies/25"
      }
    },
    {
      "type": "currencies",
      "id": "2",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Hungarian forint",
        "code": "HUF",
        "symbol": "Ft",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/2"
        },
        "self": "https://money.site.com/api/v1/currencies/2"
      }
    },
    {
      "type": "currencies",
      "id": "10",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Indonesian rupiah",
        "code": "IDR",
        "symbol": "Rp",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/10"
        },
        "self": "https://money.site.com/api/v1/currencies/10"
      }
    },
    {
      "type": "currencies",
      "id": "23",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Israeli new shekel",
        "code": "ILS",
        "symbol": "₪",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/23"
        },
        "self": "https://money.site.com/api/v1/currencies/23"
      }
    },
    {
      "type": "currencies",
      "id": "19",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Indian rupee",
        "code": "INR",
        "symbol": "₹",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/19"
        },
        "self": "https://money.site.com/api/v1/currencies/19"
      }
    },
    {
      "type": "currencies",
      "id": "16",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Japanese yen",
        "code": "JPY",
        "symbol": "¥",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/16"
        },
        "self": "https://money.site.com/api/v1/currencies/16"
      }
    },
    {
      "type": "currencies",
      "id": "14",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Moroccan dirham",
        "code": "MAD",
        "symbol": "DH",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/14"
        },
        "self": "https://money.site.com/api/v1/currencies/14"
      }
    },
    {
      "type": "currencies",
      "id": "12",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "New Zealand dollar",
        "code": "NZD",
        "symbol": "NZ$",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/12"
        },
        "self": "https://money.site.com/api/v1/currencies/12"
      }
    },
    {
      "type": "currencies",
      "id": "5",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Polish złoty",
        "code": "PLN",
        "symbol": "zł",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/5"
        },
        "self": "https://money.site.com/api/v1/currencies/5"
      }
    },
    {
      "type": "currencies",
      "id": "17",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Chinese yuan",
        "code": "RMB",
        "symbol": "元",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/17"
        },
        "self": "https://money.site.com/api/v1/currencies/17"
      }
    },
    {
      "type": "currencies",
      "id": "18",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-06-11T13:33:59+03:00",
        "default": false,
        "enabled": true,
        "name": "Russian ruble ",
        "code": "RUB",
        "symbol": "₽",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/18"
        },
        "self": "https://money.site.com/api/v1/currencies/18"
      }
    },
    {
      "type": "currencies",
      "id": "6",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Turkish lira",
        "code": "TRY",
        "symbol": "₺",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/6"
        },
        "self": "https://money.site.com/api/v1/currencies/6"
      }
    },
    {
      "type": "currencies",
      "id": "4",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Ukrainian hryvnia",
        "code": "UAH",
        "symbol": "₴",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/4"
        },
        "self": "https://money.site.com/api/v1/currencies/4"
      }
    },
    {
      "type": "currencies",
      "id": "7",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-06-11T13:33:59+03:00",
        "default": false,
        "enabled": true,
        "name": "US Dollar",
        "code": "USD",
        "symbol": "$",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/7"
        },
        "self": "https://money.site.com/api/v1/currencies/7"
      }
    },
    {
      "type": "currencies",
      "id": "20",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "Bitcoin",
        "code": "XBT",
        "symbol": "₿",
        "decimal_places": 8
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/20"
        },
        "self": "https://money.site.com/api/v1/currencies/20"
      }
    },
    {
      "type": "currencies",
      "id": "15",
      "attributes": {
        "created_at": "2019-04-18T14:04:13+03:00",
        "updated_at": "2019-04-18T14:04:13+03:00",
        "default": false,
        "enabled": false,
        "name": "South African rand",
        "code": "ZAR",
        "symbol": "R",
        "decimal_places": 2
      },
      "links": {
        "0": {
          "rel": "self",
          "uri": "/currencies/15"
        },
        "self": "https://money.site.com/api/v1/currencies/15"
      }
    }
  ],
  "meta": {
    "pagination": {
      "total": 26,
      "count": 26,
      "per_page": 50,
      "current_page": 1,
      "total_pages": 1
    }
  },
  "links": {
    "self": "https://money.site.com/api/v1/currencies?&page=1",
    "first": "https://money.site.com/api/v1/currencies?&page=1",
    "last": "https://money.site.com/api/v1/currencies?&page=1"
  }
}
emansih commented 5 years ago

To be honest, your stack trace does not tell me where it crashes. Initially it was a NullPointerExeception, which I fixed it by doing a null check. Now it's a IllegalStateException, which is caused by a malformed JSON received from your server.

emansih commented 5 years ago

Hey, is your issue resolved?