alanshaw / david-www

:eyeglasses: David helps keep your Node.js project dependencies up to date.
https://david-dm.org
MIT License
730 stars 131 forks source link

Internal Server error #366

Closed ghost closed 7 years ago

ghost commented 7 years ago

After signing in & accepting OAuth for GitHub when I browse to my repo on: https://david-dm.org I'm getting a 500 Internal server error

I've tried removing the OAuth from Github, clearing everything from david-dm.org (Cookies, caches, histories, storage, browsing data) & then re-connecting my github account.

Same issue persists.

aeimer commented 7 years ago

Same Here. Connected with github, added badge to readme => 'pending'. https://david-dm.org/h-da/geli Throws a 500...

OmgImAlexis commented 7 years ago

Same here, can't login at all.

dashersw commented 7 years ago

Same here. Can't login.

OmgImAlexis commented 7 years ago

@alanshaw is this being looked at?

n1ru4l commented 7 years ago

Same for me

gabrielcsapo commented 7 years ago

Started it up and configured the github options to point at public github with a new clientId and secret, works fine locally. Might just need to check the configuration on production.

OmgImAlexis commented 7 years ago

@gabrielcsapo I replaced the url secrets. This is all I'm getting.

screen shot 2017-06-02 at 2 21 17 pm

gabrielcsapo commented 7 years ago

Is that running locally @OmgImAlexis? I am running it locally

OmgImAlexis commented 7 years ago

Nope that's the actual site.

alanshaw commented 7 years ago

If anyone has time to submit a pull request that would be great!

aeimer commented 7 years ago

@alanshaw What should the PR contain? I don't see a solution for this problem in this thread? Or should someone debug through this and fix the problem?!

alanshaw commented 7 years ago

Error in the server logs:

Error: Failed to request access token: Unable to find user from token
    at gh.users.get (/home/david-www/david-www/dist/lib/auth.js:50:23)
    at /home/david-www/david-www/node_modules/github/lib/index.js:894:17
    at callCallback (/home/david-www/david-www/node_modules/github/lib/index.js:728:17)
    at IncomingMessage.<anonymous> (/home/david-www/david-www/node_modules/github/lib/index.js:792:25)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)
OmgImAlexis commented 7 years ago

I've even tried deactivating david-dm in Github's OAuth apps section and logging in again but it still gives me that error. I've used david-dm before so I don't know why this is only happening now.

gabrielcsapo commented 7 years ago

Yeah I tried to reproduce the issue locally, I am not seeing it. @alanshaw maybe it is a deploy issue?

kamronbatman commented 7 years ago

I am getting the same issue on the actual david-dm.org site.

m67hoff commented 7 years ago

I would like to try this but I am getting the same issue on the actual david-dm.org site

jeantimex commented 7 years ago

Same here, cannot sign in to https://david-dm.org, receive "Internal Server Error".

broccolini commented 7 years ago

I'm also getting this error 😞

andrevenancio commented 7 years ago

still not working

raulfdm commented 7 years ago

Browser Log:

callback:1 Site cannot be installed: the page has no manifest <link> URL
callback:1 Refused to load the stylesheet 'data:text/css;base64,LyogCiAqIHNodXR1cC5jc3MKICogd2ViIC0gcGVhbnV0IGdhbGxlcn…RhYmxlLmRpZmYgLmNvbW1lbnQKCnsKCWRpc3BsYXk6IGluaXRpYWwgIWltcG9ydGFudDsKfQo=' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'style-src' was not explicitly set, so 'default-src' is used as a fallback.

callback Failed to load resource: the server responded with a status of 500 (Internal Server Error)
OmgImAlexis commented 7 years ago

@raulfdm that's not the issue, it's a server side error.

raulfdm commented 7 years ago

@OmgImAlexis I know it's, but is the same situation: I try to use OAuth to login and I receive an message internal server error and I can't login. I just paste here console log

andrevenancio commented 7 years ago

still no progress? :( its just OAuth!!!

gabrielcsapo commented 7 years ago

Has anyone been able to reproduce locally? It doesn't look like there is a clear cause

OmgImAlexis commented 7 years ago

@gabrielcsapo as per https://github.com/alanshaw/david-www/issues/366#issuecomment-306742465 it looks like it's a Oauth issue. Maybe more logging needs to be added where the stack trace is from.

gabrielcsapo commented 7 years ago

will see if I can add PR with that logging, give me 15 minutes 😄

gabrielcsapo commented 7 years ago

I think I found the problem

gabrielcsapo commented 7 years ago

upon second glance and complete rebase, the issue was the value being received from the get call, https://github.com/alanshaw/david-www/pull/380 should fix the issue 😄

alanshaw commented 7 years ago

Thanks @gabrielcsapo 😄

aeimer commented 7 years ago

Yep, signing in works again :) Perfect👌

gabrielcsapo commented 7 years ago

Yay! :smile:

OmgImAlexis commented 7 years ago

That's fixed it. 👍

aeimer commented 7 years ago

Same Here. Connected with github, added badge to readme => 'pending'. https://david-dm.org/h-da/geli Throws a 500...

How long do you think David-dm needs to check for new repos? I still get the 500 and the badge is still pending. I have signed in with github. Is it necessary to be a admin of the organisation to add a repo to David dm?