Skip to content
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

JavaScript WARNING/ERROR: JavaScript promise rejection #28226

Closed
somera opened this issue Nov 26, 2023 · 10 comments · Fixed by #28433
Closed

JavaScript WARNING/ERROR: JavaScript promise rejection #28226

somera opened this issue Nov 26, 2023 · 10 comments · Fixed by #28433
Labels

Comments

@somera
Copy link

somera commented Nov 26, 2023

Description

I have this https://github.com/run-llama/llama_index mirror in my gitea. And Chrome/FF shows:

image

On GitHub I can't see this Warning/Error.

Gitea Version

1.21.0

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

2.43.0

Operating System

Ubuntu 22.04.3 LTS x86_64

How are you running Gitea?

gitea-1.21.0-linux-amd64

Database

PostgreSQL

@somera
Copy link
Author

somera commented Nov 26, 2023

I get same message for https://github.com/tensorflow/tensorflow

@wxiaoguang
Copy link
Contributor

Please provide enough logs: "Open browser console to see more details"


Although there is no enough feedback, I could guess that it's caused by : Copy citation file content, in APA and BibTex format, on repo home page #19999 , the citation-js failed to parse some data in CITATION.cff

@somera
Copy link
Author

somera commented Nov 27, 2023

@wxiaoguang as I wrote, it can be reproduced on try.gitea.io.

But ...

image

@milkbrother666
Copy link

milkbrother666 commented Dec 10, 2023

me too.
I had this problem when trying to upgrade Gitea to 1.21.1.
image

@wxiaoguang
Copy link
Contributor

They are different problems.

The author's problem is caused by #19999 when there is an invalid date in CITATION file.

The getConfig/ClickToLoad problem is highly likely caused by some buggy browser plugins/extensions.

@milkbrother666
Copy link

They are different problems.

The author's problem is caused by #19999 when there is an invalid date in CITATION file.

The getConfig/ClickToLoad problem is highly likely caused by some buggy browser plugins/extensions.

You're right.
I don't have this problem when I use Google Chrome incognito mode.
Thanks.

@oliverjhyde
Copy link

Not the same error message but similar

JavaScript error: TypeError: WeakMap key undefined must be an object or an unregistered symbol

Disabling Dark Reader extension in Firefox solved the problem.

@somera
Copy link
Author

somera commented Jan 19, 2024

Looks like it is fixed in 1.21.4

@ghost
Copy link

ghost commented Jan 25, 2024

This is likely an external browser store plugin bug, and after I eliminated it, it didn't issue a warning. Gitea1.21.4

Copy link

Automatically locked because of our CONTRIBUTING guidelines

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants