__________     __ __     __  _______    ________
  / ____/ __ \   / // /    / / / /  _/ |  / / ____/
 / / __/ / / /  / // /_   / /_/ // / | | / / __/
/ /_/ / /_/ /  /__  __/  / __  // /  | |/ / /___
\____/\____/     /_/    /_/ /_/___/  |___/_____/

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

My first contribution to Utopian: fixed bug when loading GitHub repos

BY: @icaro | CREATED: Dec. 20, 2017, 5:07 p.m. | VOTES: 16 | PAYOUT: $69.39 | [ VOTE ]

The problem

I found this bug when I was managing my GitHub account and the apps connected to it. I removed the authorization to Utopian and tried to reconnect it, but when I did it, the Utopian website stopped working.

I first thought that the website was down. So I reached the Utopian managers on Twitter, but it turned out to be a bug.
[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1513788896/r8bdrnvmedbstmqzjhmw.png]

Utopian relies on the GitHub API to fetch the user's repositories, if him/her connects the Utopian account to GitHub.

The problem was that the app was trying to load my GitHub repositories, but it didn't have the proper key (since I removed the authorization). The important part is that the GitHub repos are not crucial to Utopian. In other words, if the app cannot read the repos, it should work anyway. But the thing is that the way it was coded, if the GitHub API didn't respond, the app got stuck waiting for a response.

Proof of work

Commit
PR

GitHub account:
https://steemitimages.com/0x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1513051216/c80cxpctiriit0tn1hik.png

Thanks to @elear that helped me to make my first contribution. I'm willing to keep contributing to this amazing project!

Posted on Utopian.io - Rewarding Open Source Contributors

TAGS: [ #utopian-io ] [ #bug ] [ #javascript ] [ #fix ]

Replies

@codingdefined | Dec. 21, 2017, 5:16 a.m. | Votes: 0 | [ VOTE ]

Thank you for the contribution. It has been approved.

A great contribution, but since it is a small change next time you combine 3-4 bug fixes into one post.

You can contact us on Discord.
[utopian-moderator]

@utopian-io | Dec. 22, 2017, 3:40 a.m. | Votes: 0 | [ VOTE ]

Hey @icaro I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
- Vote for my Witness With SteemConnect
- Proxy vote to Utopian Witness with SteemConnect
- Or vote/proxy on Steemit Witnesses

[IMAGE: https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif]

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

@steemitboard | Dec. 22, 2017, 2:51 p.m. | Votes: 0 | [ VOTE ]

Congratulations @icaro! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[IMAGE: https://steemitimages.com/70x80/http://steemitboard.com/notifications/posts.png] Award for the number of posts published

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

> By upvoting this notification, you can help all Steemit users. Learn how here!

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>