-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Labels
Description
Description
Instead of an informative error message i get an 500 Server Error.
Log:
.../providers_openid.go:42:CreateGothProvider() [W] [640291c5] Failed to create OpenID Connect Provider with name 'xxx' with url 'openid.xxx': Get "openid.xxx": unsupported protocol scheme ""
I think it would be possible to give this info in the Webinterface
The next 500 Server Error happens if the discovery URL returns HTML content.
Gitea Version
1.18.5
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
i use an release from Github on Uberspace
see this Guide for more info:
https://lab.uberspace.de/guide_gitea/
Database
MySQL
Activity
wxiaoguang commentedon Mar 4, 2023
Could yuo check your URL in config? Maybe it should be "https://openid.xxx" but not "openid.xxx"
cchartmann commentedon Mar 4, 2023
yes that is true. and i solved my problem but i would propose to make a more useful message than an 500 Server Error.
cchartmann commentedon Mar 4, 2023
i think Gitea answers a lot of things with a 500 Server Error instead of an useful error message in cases in which it is possible to make an message, that describes the Problem, gives some useful information and could allow the user to change the input.
wxiaoguang commentedon Mar 4, 2023
Agree to improve. There are a lot of 500 errors in Gitea, which is very unfriendly to end users.
It just needs time and manpower to clean them one by one .....
Handle OpenID discovery URL errors a little nicer when creating/editi…
ELISHELL commentedon Mar 10, 2023
i have a same problem.
I set up an openid provider with keycloack. return
{"error":"invalid_grant","error_description":"Code not valid"}
gitea logs:
keycloak logs:
Handle OpenID discovery URL errors a little nicer when creating/editi…
Handle OpenID discovery URL errors a little nicer when creating/editi…
Handle OpenID discovery URL errors a little nicer when creating/editi…