I am upgrading my SFS server from 2.9.2 to 2.13.4 and facing few issues.
I am putting a string array to "putUtfStringArray" but getting error each time.
Code: Select all
var params = new SFS2X.SFSObject();
//var a = new SFS2X.
params.putUtfStringArray("opponents",[opponentId.toString(),""]);
params.putInt("action",7);
Getting this error.
"SFSTypeError
Invalid value passed; type SFSDataType.UTF_STRING_ARRAY requires an array of string values
STACK TRACE: SFSTypeError: Invalid value passed; type SFSDataType.UTF_STRING_ARRAY requires an array of string values
at t (http://localhost:9000/vendor/sfs/SFS2X_API_JS.js:6:1971)
at new t (http://localhost:9000/vendor/sfs/SFS2X_API_JS.js:6:2362)
at Object.validate (http://localhost:9000/vendor/sfs/SFS2X_API_JS.js:6:8264)
at e.value (http://localhost:9000/vendor/sfs/SFS2X_ ... js:6:11633)
at e.value (http://localhost:9000/vendor/sfs/SFS2X_ ... js:6:12821)
at Object.that.eraseUsersNotes (http://localhost:9000/scripts/services/ ... .js:976:16)
"