JavaScript error: Uncaught TypeError: Cannot read properties of undefined (reading 'length') (https://xxx.xx/assets/js/index.js?v=1.20.0~dev-240-gd4f35bd681 @ 37:60918). Open browser console to see more details. #10492

Closed
opened 2025-11-02 09:09:16 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @hiifong on GitHub (Mar 23, 2023).

Description

When i click on the authenticate ssh button, this js error is thrown

I can reproduce the bug on the gitea.com and try.gitea.io

Gitea Version

v1.20+

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image
image

Git Version

No response

Operating System

No response

How are you running Gitea?

./gitea web

Database

None

Originally created by @hiifong on GitHub (Mar 23, 2023). ### Description When i click on the authenticate ssh button, this js error is thrown I can reproduce the bug on the gitea.com and try.gitea.io ### Gitea Version v1.20+ ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![image](https://user-images.githubusercontent.com/89133723/227207949-9c0d4060-eccc-448c-a155-c4224df83437.png) ![image](https://user-images.githubusercontent.com/89133723/227210253-6f743391-01e1-4352-be4e-b373df0f88fd.png) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? ./gitea web ### Database None
GiteaMirror added the type/bug label 2025-11-02 09:09:16 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Mar 23, 2023):

Incorrect copy-paste code by #17743 , and it triggers a bug.

@wxiaoguang commented on GitHub (Mar 23, 2023): Incorrect copy-paste code by #17743 , and it triggers a bug.
Author
Owner

@wxiaoguang commented on GitHub (Mar 23, 2023):

Will be fixed by #23660

@wxiaoguang commented on GitHub (Mar 23, 2023): Will be fixed by #23660
Author
Owner

@hiifong commented on GitHub (Mar 23, 2023):

Will be fixed by #23660

Thank you

@hiifong commented on GitHub (Mar 23, 2023): > Will be fixed by #23660 Thank you
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10492