StatKani - Data visualizations for WaniKani

Yes, it works for me now too, it looks like OP fixed whatever was wrong, or else it was intermittent

1 Like

Sorry for the delayed response, it’s been a busy week :sneezing_face:

I haven’t pushed any code to the site for a month, so I definitely didn’t fix anything :sweat_smile: I’ll look into it more if it crops up again, but I’m hoping it was a temporary bug caused by the update @doncr mentioned.

You might be hitting the API rate limit, in which case data loading can pause for up to 60 seconds. This should realistically only happen if it’s your first time visiting the site, as future visits use the cached data.

If it’s getting stuck for over a minute, would you mind sending a screenshot of your console showing the errors? (Right Click > Inspect > Console Tab)

4 Likes

No worries! Based on the responses to this thread it looks like maybe there was an issue w/ the update that auto resolved. It works for me now

3 Likes

Cross-Origin Request Blocked (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

1 Like

This is great! I’m able to see the break I had, current streak, and longest streak. It also has a fantastic presentation.

I see there’s a reading section that isn’t available though. What will that section look like when it’s implemented?

2 Likes

Hmm, seems like this problem just randomly crops up. I’m finding it difficult to debug since I can’t reproduce it, but I’ll try again :+1:

That section was going to show your kanji coverage of various books, so people could pick material that’s suited to their current level. But I came across Natively, which does a similar thing but better so that section is probably going to get dropped :sweat_smile:

4 Likes

You’re right that it’s difficult to reproduce. I tried this on another computer and it’s fine. Both computers are Windows 10. The one where it didn’t work was using Firefox, the one that works is Chrome, both latest versions.

2 Likes

Oh I see! Either way I like what you’ve done and thanks for the info!

I haven’t heard of Natively before. I’m looking for the website but not finding it. Could you share a link please?

3 Likes

Sure, this is the link to the website → Natively. There’s also a discussion thread with more info, link here → Introducing Natively.

2 Likes

The problem had resolved itself, but now it’s getting stuck again, at decreasing percentages of reviews every time I try again after doing reviews.
Here’s the errors screenshot:

statkani

Issues:

1 Like

Does this not work anymore? :frowning:

Hey, I haven’t touched this project in a while, but it still works for me. Other users had reported some errors with CORS, but I never got around to fixing them because I couldn’t reproduce the error. :smiling_face_with_tear:

Are the errors you’re getting similar to the ones mentioned previously? (e.g. in the message just above yours)

Quick update, you can now also access the site at statkani.com, although you’ll have to wait a minute or two for it to re-download all your data.

1 Like

Thanks for making this! I love the item visualization!!

1 Like

This hasn’t worked for me for the last few days - I keep getting a client-side exception error

When I go to browser console this is what I got
to load resource: net::ERR_CONNECTION_REFUSED
vitals.vercel-insights.com/v1/vitals:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
framework-2191d16384373197bc0a.js:1 TypeError: Cannot read properties of undefined (reading ‘mc’)
at dashboard-ca154bcdaa3a0de2bb01.js:1:14203
at Array.reduce ()
at ye (dashboard-ca154bcdaa3a0de2bb01.js:1:14173)
at ro (framework-2191d16384373197bc0a.js:1:60216)
at jo (framework-2191d16384373197bc0a.js:1:69783)
at Hu (framework-2191d16384373197bc0a.js:1:113665)
at Pi (framework-2191d16384373197bc0a.js:1:99848)
at xi (framework-2191d16384373197bc0a.js:1:99776)
at _i (framework-2191d16384373197bc0a.js:1:99639)
at vi (framework-2191d16384373197bc0a.js:1:96605)
uu @ framework-2191d16384373197bc0a.js:1
main-d7431fe8ee9bc358dd07.js:1 TypeError: Cannot read properties of undefined (reading ‘mc’)
at dashboard-ca154bcdaa3a0de2bb01.js:1:14203
at Array.reduce ()
at ye (dashboard-ca154bcdaa3a0de2bb01.js:1:14173)
at ro (framework-2191d16384373197bc0a.js:1:60216)
at jo (framework-2191d16384373197bc0a.js:1:69783)
at Hu (framework-2191d16384373197bc0a.js:1:113665)
at Pi (framework-2191d16384373197bc0a.js:1:99848)
at xi (framework-2191d16384373197bc0a.js:1:99776)
at _i (framework-2191d16384373197bc0a.js:1:99639)
at vi (framework-2191d16384373197bc0a.js:1:96605)
le @ main-d7431fe8ee9bc358dd07.js:1
main-d7431fe8ee9bc358dd07.js:1 A client-side exception has occurred, see here for more info: client-side-exception-occurred | Next.js
le @ main-d7431fe8ee9bc358dd07.js:1
vitals.vercel-insights.com/v1/vitals:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
vitals.vercel-insights.com/v1/vitals:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
main-d7431fe8ee9bc358dd07.js:1 POST https://vitals.vercel-insights.com/v1/vitals net::ERR_CONNECTION_REFUSED

API changes - Get All Reviews broke a lot of similar websites and scripts, so that might have been the ultimate cause here. I didn’t check myself, just flagging it for anyone else who looks into this.

(If that’s the case, then the Vercel Insights errors in the console might be a red herring.)

Edit: Never mind, see below.

I feel like it has just been in the last few days - I’m not great at github but it looks like he pushed a minor change thru last week

1 Like

Ah ok – so it was working at one point within the last 26 days but broke more recently? If so then my guess was wrong!

Ah, seems like it was indeed mostly working 3 weeks ago (although the heatmap broke)

I’ve also noticed this error today and submitted a pull request on GitHub to fix it. I hope it gets merged soon, then it should work again for everyone :slight_smile:

1 Like