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

bug: 每次打开网站控制台都出现undefined 404错误 #44

Open
mjsoftking opened this issue Mar 21, 2024 · 5 comments
Open

bug: 每次打开网站控制台都出现undefined 404错误 #44

mjsoftking opened this issue Mar 21, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@mjsoftking
Copy link

错误如图

image

Failed to load resource: the server responded with a status of 404 ()

检查发现好像是这里检测到 undefined 了但是没有结束,代码继续执行导致的
image

@mjsoftking mjsoftking changed the title bug: 每次打开网站都出现undefined 404错误 bug: 每次打开网站控制台都出现undefined 404错误 Mar 21, 2024
@LIlGG
Copy link
Owner

LIlGG commented Mar 21, 2024

这是预期行为。因为 live2d 会去读取主题下的 tips 文件,当没有获取到时会抛出异常。

@mjsoftking
Copy link
Author

实际运行好像不是,填了自定义的tips地址,也会传入一个undefined进来
那个if判断加个return就行了吧

@mjsoftking
Copy link
Author

https://demo.sw0.top/live2d/Dream2.0/live2d-tips.json

我填写的这个外置的一个静态地址

@LIlGG
Copy link
Owner

LIlGG commented Mar 21, 2024

这个确实是个 bug,因为 tips 无法获取到值。

/kind bug

@LIlGG
Copy link
Owner

LIlGG commented Mar 21, 2024

感谢反馈~

@LIlGG LIlGG added the bug Something isn't working label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants