Forums

RS-Linkify Thread is sticky

Quick find code: 261-262-33-65181208

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
Thanks Uuo, hopefully Blasty can shed some light on this.


@Blasty, Not sure if anything has changed on your end, but all versions of linkify since poll embedding show this in console.

http://i.imgur.com/6Liu1RW.png

From what I can tell the updated height message isn't being sent.

When working correctly I receive two messages...
{"height":246,"pollId":"16"} <-- initial height
{"height":786,"pollId":"16"} <-- updated height


When the error occurs I just get this...
{"height":244,"pollId":"16"}
TypeError: Cannot read property 'voted' of undefined


If there is anything I can do let me know :)

12-Jul-2015 09:02:02

Blasty
Feb Member 2017

Blasty

Posts: 9,319 Rune Posts by user Forum Profile RuneMetrics Profile
Heyyy :)

It was a problem on my end and it's been fixed :)

It was to do with converting the date to a base 64 string, and the result not being correct because a letter went missing. The code seemed fine and it worked locally so I just pushed it again and the issue went away.

The result meant that sessions weren't able to be validated correctly, so no poll data was received.

Not sure how it happened though :O
Blasty
// @BlastytheBlue // Blasty#5167
| Co-owner of Mine Nation

12-Jul-2015 10:03:54 - Last edited on 12-Jul-2015 10:06:53 by Blasty

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
Thanks for the fast reply Blasty!

Glad you know what's going on, I double and triple checked to make sure it wasn't on my end, but even so I couldn't be sure.

Since your fix, it seems a hard refresh is needed else the results wont load, chrome is using cached version of the script by looks of it.

Hopefully the expiry for the cache isn't too long :)

12-Jul-2015 10:23:20

Blasty
Feb Member 2017

Blasty

Posts: 9,319 Rune Posts by user Forum Profile RuneMetrics Profile
Aah, turns out it was to do with getting a negative number from a modulo operation and trying to use that to get the index from an array.

It would only cause problems for some numbers/dates :O

Should be working properly now :)
Blasty
// @BlastytheBlue // Blasty#5167
| Co-owner of Mine Nation

12-Jul-2015 10:55:16 - Last edited on 12-Jul-2015 10:56:18 by Blasty

Quick find code: 261-262-33-65181208 Back to Top