-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some commits are shown as ... in file list with js error: JavaScript error: Uncaught TypeError: Cannot read properties of undefined (reading 'replaceWith') #19995
Comments
Cannot reproduce it in macOS 12.4 with Chrome 97.0 |
I just reproduced this with librewolf 101.0.1 (firefox based), so this doesn't seem browser related. I suggest going through different folders because it seems like this error goes away for some time after you open these folders. Probably caching related somehow. EDIT: just noticed that there is a different error now but the result is similar. Error text: Console: Uncaught TypeError: e[r(...).attr(...)] is undefined
mb https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:83
each https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:1
each https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:1
mb https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:83
Ce https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:1
fireWith https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:1
Xi https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:4
u https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:4
[index.js:83:2344](https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873)
mb https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:83
each https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:1
each https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:1
mb https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:83
Ce https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:1
fireWith https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:1
Xi https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:4
u https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873:4 |
Crashed here: gitea/web_src/js/features/repo-commit.js Line 48 in a036507
|
A quick patch: #19996 I do not know how it happens at the moment, the logic seems complex here. 😂 |
@Fogapod that's very strange that I still have difficult to reproduce the problem. So here is a quick patch. Could you find more clues about how to trigger the error? It seems that the returned content is the key. Could you share the returned |
What do you mean by |
Hmm .... I think I have some clues about the problem ..... |
OK, everything clear. Will update the PR soon. The problem is that there are unrecognized |
Description
https://gitea.com/marktsai0316/linux/src/branch/master/scripts
https://gitea.com/marktsai0316/linux/src/branch/master/scripts/clang-tools
https://gitea.com/marktsai0316/linux/src/branch/master/scripts/atomic
Error from ui:
JavaScript error: Uncaught TypeError: Cannot read properties of undefined (reading 'replaceWith') (https://gitea.com/assets/js/index.js?v=5b550aecacf32806c61a3f6e9820c873 @ 83:2368). Open browser console to see more details.
From console:
When this happens, some files dont show commit message/date:
I am not sure how to reproduce this reliably yet. It just happens randomly with random files when going through folders
Error goes away after a few page refreshes. I noticed that it happens more frequently with small browser window
Screenshots
Gitea Version
1.17.0+dev-711-g1fef9a2d6
Can you reproduce the bug on the Gitea demo site?
Yes
Operating System
Artix Linux
Browser Version
Chromium based 100+
The text was updated successfully, but these errors were encountered: