Buggy "ADD TO HISTORY"
I'd like to add movies that I've seen before I use trakt to its history, but I've found it rather difficult because some buggy behavior.
When I try to add the movie to the history on movie page by clicking on "ADD TO HISTORY", it rarely gets saved, mostly just "Just now" text shows here and nothing is stored (if I refreshed the page, it shows I've never seen it). I have to click it multiple times until it gets stored - then it suddenly show me all plays of previous clicks, for example "3 PLAYS - VIEW ALL". I don't want to have multiple plays here, so I remove plays history and have to repeat the process until success (mostly 2-4 tries). Sometimes I even can't to remove these unwanted plays, because it shows me error message "Doh! There was an error doing this.". When it happens I just repeat the process... as I add new play, previous plays vanishes and only last play gets saved.
I tries it on two PCs with Chrome browser.
This is actually a bug with the Ad Blocker you’re using. It seems they pushed some sort of update recently that broken the Trakt website. Disabling the ad blocker should get the Trakt website working agan.
Thanks, glad to help, but seems that fixing one server was not enough... some other is ~14 seconds behind, so bug is still present.
Wow, great investigation! Thanks to that info I was able to find 1 server that wasn't keeping its time clock updated automatically. This should now be fixed.
Also, you can reset your browser data at trakt.tv/settings/data should you ever notice it is out of sync.
It seems that generic problem is discrepancy between timestamps in local latestActivities and remote ones (https://trakt.tv/users/me/last_activities.json). At time when bug happens I have local timestamp 10 minutes lower than current time, so cache is not set at all because of condition: (!lastActivities || Date.parse(t[a].watchlisted_at) > Date.parse(lastActivities[a].watchlisted_at))
These are values logged at cacheUserData::$.get("/users/me/last_activities.json"::$.get("/users/me/watchlist/" + a + ".json"
* click to add to watchlist again
* click to remove from watchlist
remote: 2019-09-30T08:42:35Z (remote time updated properly)
* click to add to watchlist again
local: 2019-09-30T08:32:25Z !!! (local timestamp is incorrect)
I believe these times can't be shifted by some Ad Blocker like you say, because you update them on your side. This bug happens for me on different networks, systems, browsers and places. Are you sure, that all your servers have the local time set correctly?
I'm still struggling with this bug, it also affects adding/removing to/from watchlist. I just realized that problem is caused by data cached in Local Storage seems to somehow gets out of sync with your remote database. When I clear Local Storage, it shows correct watchlist/history state and works ok, but soon it store wrong data (or doesn't store it) again and the problem is back.
I found there's also a bug adding comments - I write a comment - it flags an error saying comments must be longer than 5 words - despite it BEING a whole sentence longer than 5 words. I can't add any comments unless I go to my phone - is this also AdBlock related?
Out of despair I even tried Firefox on Ubuntu now - the same behavior.
Weird. I don't use any VPN either. I tried it at home, also at work, completely different network configurations.
Maybe a VPN then? A lot of other people had the same issue at it was the Ad Blocker that was breaking the functionality. We haven't changed anything on the Trakt website, so it points to some browser extension or VPN that is changing the Trakt website in some way.
I'm using ScriptSafe, but it was first thing that comes to my mind, so I already tried it with all browser extensions disabled - doesn't help. Now I tried also Edge browser - the bug is also present here.