HapRamp v0.0.9 - Few seconds after tapping the "Earning" button, the app crashessteemCreated with Sketch.

in #utopian-io6 years ago (edited)

Project Information

Expected behavior

When a user taps the “Earning” button, he should be able to see his Balances and wallet history.

Actual behavior

Upon tapping the “Earning” button, the app stops after few seconds of loading the balances and wallet history.

How to reproduce

  • Download the latest release of HapRamp-Android from GitHub.
  • Open the HapRamp app.
  • Log-in via SteemConnect using your Steemit username and password.
  • Tap the icon for “Earning”.
  • After a few seconds of tapping the “Earning” button , the app crashes and prompts a message saying “HapRamp has stopped”.

Logcat Report

08-14 21:02:29.960  7762  7983 E AndroidRuntime: FATAL EXCEPTION: Thread-1003
08-14 21:02:29.960  7762  7983 E AndroidRuntime: Process: com.hapramp, PID: 7762
08-14 21:02:29.960  7762  7983 E AndroidRuntime: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 521 path $.user.json_metadata
08-14 21:02:29.960  7762  7983 E AndroidRuntime:    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:224)
08-14 21:02:29.960  7762  7983 E AndroidRuntime:    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:129)
08-14 21:02:29.960  7762  7983 E AndroidRuntime:    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:220)
08-14 21:02:29.960  7762  7983 E AndroidRuntime:    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:129)
08-14 21:02:29.960  7762  7983 E AndroidRuntime:    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:220)
08-14 21:02:29.960  7762  7983 E AndroidRuntime:    at com.google.gson.Gson.fromJson(Gson.java:888)
08-14 21:02:29.960  7762  7983 E AndroidRuntime:    at com.google.gson.Gson.fromJson(Gson.java:853)
08-14 21:02:29.960  7762  7983 E AndroidRuntime:    at com.google.gson.Gson.fromJson(Gson.java:802)
08-14 21:02:29.960  7762  7983 E AndroidRuntime:    at com.google.gson.Gson.fromJson(Gson.java:774)
08-14 21:02:29.960  7762  7983 E AndroidRuntime:    at hapramp.walletinfo.Wallet$1.onResponse(Wallet.java:25)
08-14 21:02:29.960  7762  7983 E AndroidRuntime:    at hapramp.walletinfo.NetworkUtils$1.run(NetworkUtils.java:40)
08-14 21:02:29.960  7762  7983 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 521 path $.user.json_metadata
08-14 21:02:29.960  7762  7983 E AndroidRuntime:    at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)
08-14 21:02:29.960  7762  7983 E AndroidRuntime:    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:213)

Environment

  • App/Plugin version: HapRamp-Android v0.0.9
  • Device: Samsung Galaxy J2 Prime (SM-G532G/DS)
  • Operating system: Android version 6.0.1

Recording Of The Bug

GitHub Account

https://github.com/josephace135

GitHub Issue

In Issue #87 the developers of the application has fixed the issue.

Sort:  

Thanks for contributing to Utopian!

Following the steps you provided I couldn't reproduce the bug.
I'm not entirely sure what is the conditions needed to recreate the bug, but since it was acknowledged and fixed by the P.O, and is code related, I'll review it as if I witnessed it on my own - and to be honest, you earned my personal respect as a trustworthy bug hunter, and your description, video, and the issue being acknowledged by P.O and fixed makes it easy to review as is.

Please proofread your posts, as we can see your title provide a wrong version of the app. It's good you include the version, but without it being accurate it doesn't have any value I'm sad to say.

The steps to reproduce the bug were clear, but I wonder if there is a missing step that because of it's absence I couldn't replicate the erroneous behavior you reported.

As for where the P.O fixed it, he referenced your issue - which is the proper way to close issues - but the work was done in a commit. If you want to link to where the fix is please do, but provide the correct link. This is the commit related to the issue.

I'm looking forward for your future contribution

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you for your review, @achiron!

So far this week you've reviewed 6 contributions. Keep up the good work!

Thank you so much @achiron. I'll follow your suggestion and will apply it to my next contributions.

Hey @josephace135
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.20
TRX 0.14
JST 0.030
BTC 68523.63
ETH 3260.51
USDT 1.00
SBD 2.66