sourcerer-io / sourcerer-app

🦄 Sourcerer app makes a visual profile from your GitHub and git repositories.
https://sourcerer.io/start
MIT License
6.73k stars 281 forks source link

[Bug?] Failed to refresh profile with gh data: timeout of 30000ms exceeded #558

Open kiprasmel opened 4 years ago

kiprasmel commented 4 years ago

I tried to Refresh > Update Github repos @ https://sourcerer.io/sarpik.

I get this error in my console:

baeee485d24a395e21be.js:1 failed to refresh profile with gh data:  Error: timeout of 30000ms exceeded
    at t.exports (e005c28999e832bcba4a.js:2)
    at XMLHttpRequest.d.ontimeout (e005c28999e832bcba4a.js:2)

Thanks!

yaronskaya commented 4 years ago

Hi @sarpik, could you please check there is an access for Sourcerer in github settings Settings -> Applications -> Authorized OAuth Apps?

kiprasmel commented 4 years ago

Hello @yaronskaya, thanks, yes there is: https://i.imgur.com/vS0Hzmx.png (under Authorized OAuth Apps)

yaronskaya commented 4 years ago

@sarpik looks like your github token doesn't provide access for Sourcerer now. Could you please revoke it and add github account at sourcerer.io again: Settings->Applications->Github: sign in?

kiprasmel commented 4 years ago

@yaronskaya yep, that did sync the profile.

Though if I click Refresh > Update Github repos, I still get the same errors and cannot refresh.

Also, before that, I tried signing in with a different browser with the same github account, and a different profile was created - https://sourcerer.io/sarpik1. I don't know if this is expected so just letting you know:D And they (sarpik and sarpik1) are a little out of sync:D

Edit: Were the different profiles created because I have > 1 email? That would explain them being out of sync.

yaronskaya commented 4 years ago

@sarpik yes, these two profiles have different emails. Therefore assigned commits are different. Meanwhile, I reassigned the github token from your second profile to the original one - it processes the profile https://sourcerer.io/sarpik now. Did you change the primary email in github settings?

kiprasmel commented 4 years ago

@yaronskaya I have changed my primary email a while back, but not after I started using sourcerer.

Now the refresh feature seems to work, at least with /sarpik:)

Would it be possible to merge the contributions from both (all) of my emails (that my profile has) into a single sourcerer profile, just like github does? I don't think that having 2 (or more) separate profiles for every email is useful if that's still the same user (at least in my case).

Thanks!

yaronskaya commented 4 years ago

@sarpik you can add emails in Settings -> Emails and after that Update Github repos.

kiprasmel commented 4 years ago

Thanks @yaronskaya - I've removed the duplicate account /sarpik1 and added emails to the main account /sarpik. Everything seems to be fine now.

The Refresh feature is now working as expected, some maybe there were some issues with the duplicate account - I don't know. I suppose we can close this?

Thanks again!

kernc commented 4 years ago

Closing the Sourcerer account and then reconnecting seems to work.