Invalid value passed; type SFSDataType.LONG requires an integer number in this range: -(2^53 - 1)
Posted: 08 Aug 2017, 11:56
Hi!
We are migrating to the new javascript client, and all works perfect except for this error when a player of the room have a var with a long greater than the supported by the number like 10201670634517191.
When this occurs the room event SFS2X.SFSEvent.ROOM_JOIN never arrives. We know that the long is a problem on Javascript but if will be appreciated if instead of the exception a warning is throw.
Let me know if do you need more information.
Thanks in advance.
Regards
We are migrating to the new javascript client, and all works perfect except for this error when a player of the room have a var with a long greater than the supported by the number like 10201670634517191.
Code: Select all
Uncaught Error: Invalid value passed; type SFSDataType.LONG requires an integer number in this range: -(2^53 - 1) <= value <= +(2^53 - 1)
at SFSTypeError.SFSError (VM2126 SFS2X_API_JS.js:formatted:5539)
at new SFSTypeError (VM2126 SFS2X_API_JS.js:formatted:5569)
at Object.validate (VM2126 SFS2X_API_JS.js:formatted:5981)
at SFSArray.add (VM2126 SFS2X_API_JS.js:formatted:6476)
at SFSDataSerializer.decodeSFSArray (VM2126 SFS2X_API_JS.js:formatted:5095)
at SFSDataSerializer.decodeObject (VM2126 SFS2X_API_JS.js:formatted:5147)
at SFSDataSerializer.decodeSFSArray (VM2126 SFS2X_API_JS.js:formatted:5093)
at SFSDataSerializer.decodeObject (VM2126 SFS2X_API_JS.js:formatted:5147)
at SFSDataSerializer.decodeSFSArray (VM2126 SFS2X_API_JS.js:formatted:5093)
at SFSDataSerializer.decodeObject (VM2126 SFS2X_API_JS.js:formatted:5147)
SFSError @ VM2126 SFS2X_API_JS.js:formatted:5539
SFSTypeError @ VM2126 SFS2X_API_JS.js:formatted:5569
validate @ VM2126 SFS2X_API_JS.js:formatted:5981
add @ VM2126 SFS2X_API_JS.js:formatted:6476
decodeSFSArray @ VM2126 SFS2X_API_JS.js:formatted:5095
decodeObject @ VM2126 SFS2X_API_JS.js:formatted:5147
decodeSFSArray @ VM2126 SFS2X_API_JS.js:formatted:5093
decodeObject @ VM2126 SFS2X_API_JS.js:formatted:5147
decodeSFSArray @ VM2126 SFS2X_API_JS.js:formatted:5093
decodeObject @ VM2126 SFS2X_API_JS.js:formatted:5147
decodeSFSArray @ VM2126 SFS2X_API_JS.js:formatted:5093
decodeObject @ VM2126 SFS2X_API_JS.js:formatted:5147
decodeSFSArray @ VM2126 SFS2X_API_JS.js:formatted:5093
decodeObject @ VM2126 SFS2X_API_JS.js:formatted:5147
decodeSFSObject @ VM2126 SFS2X_API_JS.js:formatted:5070
decodeObject @ VM2126 SFS2X_API_JS.js:formatted:5151
decodeSFSObject @ VM2126 SFS2X_API_JS.js:formatted:5070
binary2object @ VM2126 SFS2X_API_JS.js:formatted:5044
newFromBinaryData @ VM2126 SFS2X_API_JS.js:formatted:6330
onPacketRead @ VM2126 SFS2X_API_JS.js:formatted:5791
_onSocketData @ VM2126 SFS2X_API_JS.js:formatted:5716
When this occurs the room event SFS2X.SFSEvent.ROOM_JOIN never arrives. We know that the long is a problem on Javascript but if will be appreciated if instead of the exception a warning is throw.
Let me know if do you need more information.
Thanks in advance.
Regards