-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Repeated lazy loading #1735
Comments
I'm seeing this also, and I've seen it before, too. It's sending about a request per second. This is what it keeps sending (updating v each time): Request URL:https://beta.habitrpg.com/api/v1/user/batch-update?_v=47267&data=1383512588151 Request headers: Request payload: Response headers: Response payload: |
…ver, so we don't hit an infinite loop
oh god! thanks @gwillen for that detail, it really helped me narrow down the issue. I just pushed a commit. Can y'all see if this fixed the issue for you? |
I was just about to say that I didn't know what triggered the issue. But I bet I do. Could it have been triggered by the DST change? And when I saw it before could it have been triggered by a system timezone change? (Asking because without knowing what triggered it, and having only seen it a few times, it would be hard to test if it was fixed.) |
yeah, it will definitely be triggered by timezone change. But more likely, as part of the challenges feature, we did a big overhaul on the backend, adding stricter requirements to the user schema. part of these requirements comes type-checking on attributes. Looks like timezone was being stored as a string for some people ("480" instead of 480) and being detected as "changed". the weird thing is, I'd assume this infinite-loop bug would only get triggered once, and only once, for each user - ever - since the server would then save the new value, and the next refresh would come with the server's data. weird that y'all experienced it multiple times :/ anyway, is it working then? |
Well, it's not doing it now, and changing my system timezone doesn't trigger it. So it's as fixed as I can tell. :-) |
kk. yeah, should be fixed - I tried mucking around manually and it's good. Thanks for pointing this out. The crazy thing is this bug should have been happening for many months now - since the angular rewrite; I'm surprised it wasn't caught sooner! Anyway, thanks! |
Actually, sorry - on my end this has now gotten a lot WORSE, rather than resolved! It's now sending off the event every fraction of a second. This is what's being sent on my end Request URL: https://habitrpg.com/api/v1/user/batch-update?_v=170531&data=1383550732223 Request Headers: Response Headers: Response Payload: |
@MinatureCookie does yours have a "Request Payload" like @gwillen's did? That |
I tried clearing all history (cache etc. included) on Chrome, then reloading. No dice. Sorry I forgot to include the request payload! Here's another request... Request URL: https://habitrpg.com/api/v1/user/batch-update?_v=172425&data=1383551522357 Request Headers: Request Payload: Response Headers: I checked a few other requests, looks like timezoneOffset is always set as 0 |
Crap! Exact same issue / path then.... so weird it's not getting updated in the browser for you. I even tried loading your account locally and all was fine. I'm gonna hit the sack now, sorry to leave your account like this right now - I'll tackle this moment I can this week though. |
That's fine. I'll try experimenting around a little bit, see if I can get it to start/stop at all... |
I still have the spinning loading icon and the progress bar is always there. When I open the (beta) site in opera I can clearly see the page constantly being redrawn. Request URL: https://beta.habitrpg.com/api/v1/user/batch-update?_v=615796&data=1383555698276 |
The response payload is also Strangely enough it looks like the number increases with two everytime. |
FWIW, this won't have been a new problem. It's just that we added an loading indicator for http requests, so now you can see there's a problem - this has probably been going on for months :/ |
Habitrpg used to work fine in opera, but does keep reloading now (for me). I am not sure if these two things are related, but that would suggest it is a new problem. |
Okay - I changed my timezone to Pacific (US) time, and that fixed the problem. Even having changed it back to UK time now, the problem remains fixed... Which is great for me personally, but I can't help diagnose the problem at all now... Is it possible that your fix would have needed a local timezone change, or possibly just a day change (the timezone change brought me back to Sunday, then forwards to Monday), to kickstart it into working on any account with the problem? EDIT: EDIT2: |
Changing timezone also fixed it for me both in firefox and opera, but the problem happened again as soon as I switched back to European time. |
can y'all try now? I did some peaking around and |
I still seem to be getting it on a fresh browser! :( Does it not replicate for you if you change your local timezone to UK, and then clear all browser history? |
I am still getting it as well. EDIT: I am also in the UK by the way. |
Having the same problem over at my account. In Firefox, IE and at Android APP. |
I'm having this issue in both Firefox and Chrome. It's kind of annoying lol |
fixed |
Problem fixed, no further issues! |
The lazy loader is repeatedly loading, even when the page is just sat in the background doing nothing (i.e. there are no changes to push)
A quick look at webkit dev-tools looks like something's .onreadystatechange method is being triggered once per second, sending a POST to https://habitrpg.com/api/v1/user/batch-update?_v=*******&data=*************
This results in the loading bar just spinning away at the top, jumping around, but never disappearing. Not to mention the wasted network usage! :(
The text was updated successfully, but these errors were encountered: