Code Monkey home page Code Monkey logo

genshin-stats's People

Contributors

leonismoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

genshin-stats's Issues

Still can't query player data...

#2 is closed before I can confirm the issue is fixed so here we go again.

After clicking 查询 button, an empty toast was created by createStatStore(). Tracking down the calling stack we got getGenshinGameStats->request<GameStats>.

console.log(response.text()); shows {"data":null,"message":"","retcode":10103} was received, indicating something is wrong with Mihoyo API. Tested with UID 100011111 on https://babalae.github.io/genshin-info/ to make sure UID is valid.

Unable to query player data

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

查询时报错

Firefox+Violentmonkey

米游社登录,安装userscript,打开查询页面,输入UID,点击查询后console报错:

Uncaught (in promise) TypeError: Headers constructor: ltoken=***; Path=/; Domain=mihoyo.com; Max-Age=31536000
ltuid=***; Path=/; Domain=mihoyo.com; Max-Age=31536000 is an invalid header value.
    transformHeaders moz-extension://f5056d9c-4554-4f02-b3c1-8ca790a5bfd0/ Genshin Stats.user.js#1:64
    onload moz-extension://f5056d9c-4554-4f02-b3c1-8ca790a5bfd0/ Genshin Stats.user.js#1:43
    HttpRequested moz-extension://f5056d9c-4554-4f02-b3c1-8ca790a5bfd0/sandbox/injected-web.js:1

transformHeaders(header)里加了个console.log(header),可以看到这个cookie的确是分行了。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.