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

Unable to query player data #2

Closed
MakiseKurisu opened this issue Mar 29, 2022 · 3 comments
Closed

Unable to query player data #2

MakiseKurisu opened this issue Mar 29, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@MakiseKurisu
Copy link

After #1 fix the error in user script is now gone. However the website still cannot return any data, and only an empty toast was shown. Tested with latest Chrome and Firefox.

image

@leonismoe
Copy link
Owner

It's a confirmed bug in Tampermonkey 4.14, see Tampermonkey/tampermonkey#1418.
I'll release a workaround soon.


这个 BUG 是 Tampermonkey 4.14 引起的,详见 Tampermonkey/tampermonkey#1418

@leonismoe
Copy link
Owner

问题已被修复并部署,请确保在 Violentmonkey 或者 Tampermonkey 中更新对应的用户脚本到 1.2.1 版本。
您也可以访问 https://genshin-stats.leonis.dev/genshin-stats.user.js 手动触发更新。


Bug fixed, be sure to update the user script to 1.2.1 in Violentmonkey or Tampermonkey.
You can also visit https://genshin-stats.leonis.dev/genshin-stats.user.js to trigger the update.

@leonismoe leonismoe added the bug Something isn't working label Mar 29, 2022
@MakiseKurisu
Copy link
Author

I'm still getting the same error. I replaced json field with the following code:

        json: function() {
          return this.text().then(function(value) {
              console.log("value");
              console.log(value);
              return unsafeWindow.JSON.parse(value);
          }, function(reason) {
              console.log("reject");
              console.log(reason);
          });

and got the below output in the console when I clicked 查询:

value
{"data":null,"message":"","retcode":10103}

Double checked that I'm logged in https://bbs.mihoyo.com/ys/ and the UID is valid (my own UID).

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