Bug Hunting and Fixing - SteemCard

Words
169
Reading
1 min
Listen
Play
9y

Expected behavior

SteemCard is NodeJS app, you can show your steemit.com membership information, your Steam look and your SBD look on your web site created by one of our Utopian.io mod: hsynterkr.

Expected behavior is showing the information stated above without any problem.

Actual behavior

Information for stated user is not shown. Also error in terminal.

SS of The Bug

problem?.png

image1.png

How to reproduce

You can follow the following procedure stated on github:

$ git clone https://github.com/hsynterkr/SteemCard.git
Open index.js in SteemCard/routes and change the account in line 7. Default account is my account. (hsynterkr)
This line --> var acount = "hsynterkr";
$ cd SteemCard
$ npm install
$ node bin/www
Go to the "localhost:3000/your_username"

What is the Reason?

The latest version of the project has the problem of endpoint. steemd.steemit.com is not being maintained now, it should be changed with api.steemit.com.

Solution

I send a Pull Request to fix the problem. You can find my Pull Reuqest using this link.

The solution is adding api.setoptions url as api.steemit.com

image2.png

SS After Solution

fixeddd.png

PS: I used the category of Bug Hunting not Development. Because after figuring out the bug, fixing is not really hard (just adding one line)



Posted on Utopian.io - Rewarding Open Source Contributors

Bug Hunting and Fixing - SteemCard | Ecency