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

in #utopian-io6 years ago

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.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:

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

Sort:  

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]

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!

mooncryption-utopian-witness-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

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

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!

Coin Marketplace

STEEM 0.30
TRX 0.14
JST 0.039
BTC 61902.42
ETH 3415.37
USDT 1.00
SBD 4.92