GitHub Oauth2 causes 500 #11712

Closed
opened 2025-11-02 09:45:34 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @earthjasonlin on GitHub (Sep 24, 2023).

Description

I first set up GitHub in /admin/auths, everything should be right, but when i try to connect to it with my account in /user/settings/security, it succeeds. I can now login with my GitHub account, but when i open /user/settings/security again, it gives this error and I can't see my account in Manage Linked Accounts section.
On demo site, I can link account to GitHub and don't get this 500 error on the page, but I still cant see my GitHub account listed in Manage Linked Accounts

2023/09/24 13:05:21 .../context_response.go:86:HTML() [E] Render failed: failed to render template: user/settings/security/security, error: template error: builtin(bindata):user/settings/security/accountlinks:32:20 : executing "user/settings/security/accountlinks" at <$providerData.IconHTML>: wrong number of args for IconHTML: want 1 got 0
----------------------------------------------------------------------
					{{$providerData.IconHTML}}
					               ^
----------------------------------------------------------------------

Gitea Version

1.22.0+dev-17-g6e2888ce2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image
image

Git Version

No response

Operating System

No response

How are you running Gitea?

docker-compose with nightly tag

Database

SQLite

Originally created by @earthjasonlin on GitHub (Sep 24, 2023). ### Description I first set up GitHub in `/admin/auths`, everything should be right, but when i try to connect to it with my account in `/user/settings/security`, it succeeds. I can now login with my GitHub account, but when i open `/user/settings/security` again, it gives this error and I can't see my account in `Manage Linked Accounts` section. On demo site, I can link account to GitHub and don't get this 500 error on the page, but I still cant see my GitHub account listed in `Manage Linked Accounts` ``` 2023/09/24 13:05:21 .../context_response.go:86:HTML() [E] Render failed: failed to render template: user/settings/security/security, error: template error: builtin(bindata):user/settings/security/accountlinks:32:20 : executing "user/settings/security/accountlinks" at <$providerData.IconHTML>: wrong number of args for IconHTML: want 1 got 0 ---------------------------------------------------------------------- {{$providerData.IconHTML}} ^ ---------------------------------------------------------------------- ``` ### Gitea Version 1.22.0+dev-17-g6e2888ce2 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots ![image](https://github.com/go-gitea/gitea/assets/83632110/15698fec-664d-4fa7-82fb-ba6f12663cba) ![image](https://github.com/go-gitea/gitea/assets/83632110/1ccbd2f7-b34a-4691-9ebb-aa8de75744d1) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? docker-compose with nightly tag ### Database SQLite
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 09:45:34 -06:00
Author
Owner

@lng2020 commented on GitHub (Sep 25, 2023):

Currently, both https://try.gitea.io and https://gitea.com have this error.

@lng2020 commented on GitHub (Sep 25, 2023): Currently, both https://try.gitea.io and https://gitea.com have this error.
Author
Owner

@wxiaoguang commented on GitHub (Sep 26, 2023):

Regression of #27122

@wxiaoguang commented on GitHub (Sep 26, 2023): Regression of #27122
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11712