Medusa icon indicating copy to clipboard operation
Medusa copied to clipboard

Github - Error trying to contact Github. Please try again

Open ward0 opened this issue 2 years ago • 12 comments

Medusa (please complete the following information):

Medusa Info: Branch: masterCommit: f35a19da6bc4efcafff8facca6a4d5b9e3f3f501Version: 0.5.20Database: 44.18
Python Version: 3.8.12 (default, Oct 22 2021, 21:05:38) [GCC 7.5.0]
SSL Version: OpenSSL 1.1.1l 24 Aug 2021
OS: Linux-4.4.180+-x86_64-with-glibc2.2.5
Locale: en_US.UTF-8
Timezone: CET

Debug logs (at least 50 lines): General > Advanced Settings > Enable debug

2021-11-30 16:25:21 WARNING	Thread :: [f35a19d] Error trying to contact Github. Please try again
2021-11-30 16:25:21 DEBUG	Thread :: [f35a19d] Issue submitter failed with error: GithubException(401, {'message': 'Requires authentication', 'documentation_url': 'https://docs.github.com/rest/reference/gists#create-a-gist'})

ward0 avatar Nov 30 '21 15:11 ward0

Most likely a hikup in the network connection to github. The fact that you can post this issue proves that github is working end you can reach it.

BenjV avatar Nov 30 '21 15:11 BenjV

@BenjV I have this error 24/7 in Medusa, and yes i can reach github w/o problems from my browser. I am 200% sure that my username and password is correct.

ward0 avatar Dec 01 '21 09:12 ward0

Username and password auth doesn't work anymore (deprecated by GH). You need to use the Personal access token.

medariox avatar Dec 01 '21 09:12 medariox

Yeah I'll remove the username/password option from the UI. And add a config migration that will reset user/pass auth to none gh auth set

p0psicles avatar Dec 01 '21 15:12 p0psicles

@p0psicles Thanks! I will change to access token after your commit.

ward0 avatar Dec 02 '21 08:12 ward0

You can already change to token auth. It already works.

p0psicles avatar Dec 02 '21 08:12 p0psicles

@p0psicles I just tried with token, clicking on 'generate token' opens a new tab with url: https://dereferer.org/?https%3A%2F%2Fgithub_com%2Fsettings%2Ftokens%2Fnew%3Fdescription=Medusa&scopes=gist%2Cpublic_repo but this does nothing.

ward0 avatar Dec 02 '21 12:12 ward0

Are you already logged in on github?

p0psicles avatar Dec 02 '21 13:12 p0psicles

@p0psicles Yes, i have 2 tabs open, Github and Medusa. I get this tab now: image

How should i proceed? Do i need to paste this whole page in github somewhere?

ward0 avatar Dec 07 '21 07:12 ward0

I would suggest, just don't use that feature (leave fields blank) and submit problems (if you experiences one) by hand.

BenjV avatar Dec 07 '21 09:12 BenjV

is dereferer.org still operational (as dereferer?)

cheese1 avatar Jan 03 '22 19:01 cheese1

is dereferer.org still operational (as dereferer?)

https://github.com/pymedusa/Medusa/issues/10201

OmgImAlexis avatar Jan 03 '22 19:01 OmgImAlexis