Is simulation server with unmatched version?


#1

Hi,

It seems simulation server got some problems since 2016-01-15 evening.

Server can generate data to be simulated, and my browser can complete simulation.

The error occurs when pushing result back to the server, the server did return something indicating that TypeError: _.pluck is not a function and the simulation failed.

It still occurs right now.

the console logs in ubuntu chrome 47.0.2526.111 (64-bit) is:

Simulator.coffee:180 Retrying in 10
VM2837:34 Generated random seed -3632736330 of type playerSession from sessionIDs ["55e66b347605d48905f5f377", "5663d2ee8b7218190013b5db"] submissionCount 1
LevelLoader.coffee:416 World has been initialized from level loader.
LevelLoader.coffee:311 SuperModel for Level loaded in 3674 ms
God.coffee:72 Baldr: Let there be light upon Dueling Grounds! (preload: undefined)
Angel.coffee:56 |Baldr's Krieger| Generated random seed -3632736330 of type playerSession from sessionIDs 55e66b347605d48905f5f377,5663d2ee8b7218190013b5db submissionCount 0
Angel.coffee:56 |Baldr's Krieger| The world ended in won on frame 74
Angel.coffee:56 |Baldr's Krieger| The world ended in lost on frame 74
Simulator.coffee:117 Processing results: Object {taskID: undefined, receiptHandle: undefined, originalSessionID: "5663d2ee8b7218190013b5db", originalSessionRank: 1, calculationTime: 500…}
Angel.coffee:56 |Baldr's Krieger| Headless simulation completed in 186ms.
jquery.js:8630 PUT https://codecombat.com/queue/scoring/recordTwoGames 500 (OK)send @ jquery.js:8630d.extend.ajax @ jquery.js:8166e.exports.e.sendSingleGameBackToServer @ Simulator.coffee:134e.exports.e.processSingleGameResults @ Simulator.coffee:129(anonymous function) @ backbone.js:98(anonymous function) @ lodash.js:5605c @ backbone.js:205o.Events.trigger @ backbone.js:146e.exports.e.beholdGoalStates @ Angel.coffee:131e.exports.e.onWorkerMessage @ Angel.coffee:85(anonymous function) @ Angel.coffee:4
Simulator.coffee:320 Task registration error: {"readyState":4,"responseText":"There was an error recording the single game: TypeError: _.pluck is not a function","status":500,"statusText":"OK"}
VM2896:34 Generated random seed 11373456588 of type playerSession from sessionIDs ["5605944960537b870539a17e", "56968ed127a7b12100464b41"] submissionCount 1
LevelLoader.coffee:416 World has been initialized from level loader.
LevelLoader.coffee:311 SuperModel for Level loaded in 423 ms
God.coffee:72 Baldr: Let there be light upon Dueling Grounds! (preload: undefined)
Angel.coffee:56 |Baldr's Krieger| Generated random seed 11373456588 of type playerSession from sessionIDs 5605944960537b870539a17e,56968ed127a7b12100464b41 submissionCount 0
Angel.coffee:56 |Baldr's Krieger| The world ended in won on frame 272
Angel.coffee:56 |Baldr's Krieger| The world ended in lost on frame 272
Simulator.coffee:117 Processing results: Object {taskID: undefined, receiptHandle: undefined, originalSessionID: "56968ed127a7b12100464b41", originalSessionRank: 0, calculationTime: 500…}
Angel.coffee:56 |Baldr's Krieger| Headless simulation completed in 270ms.
jquery.js:8630 PUT https://codecombat.com/queue/scoring/recordTwoGames 500 (OK)send @ jquery.js:8630d.extend.ajax @ jquery.js:8166e.exports.e.sendSingleGameBackToServer @ Simulator.coffee:134e.exports.e.processSingleGameResults @ Simulator.coffee:129(anonymous function) @ backbone.js:98(anonymous function) @ lodash.js:5605c @ backbone.js:205o.Events.trigger @ backbone.js:146e.exports.e.beholdGoalStates @ Angel.coffee:131e.exports.e.onWorkerMessage @ Angel.coffee:85(anonymous function) @ Angel.coffee:4
Simulator.coffee:320 Task registration error: {"readyState":4,"responseText":"There was an error recording the single game: TypeError: _.pluck is not a function","status":500,"statusText":"OK"}
Simulator.coffee:180 Retrying in 10

any idea?
Tell me if you need more information.


#2

Update:

It still occurs.

Tested simulations:

  1. dueling-ground
  2. cavern-survival
  3. multiplayer-treasure-grove

After simulation, and try to PUT to server, server all response the following:

Task registration error: {"readyState":4,"responseText":"There was an error recording the single game: TypeError: _.pluck is not a function","status":500,"statusText":"OK"}


#3

Thanks, nick!
I saw your commit.

I will test it again after 21 hours.


#4

Still getting the same error


#5

caching server may not refresh to latest update immediately.
maybe we should check it again maybe tomorrow.

but I’m not sure is the patch pushed or not. :confused:


#6

I haven’t been able to fix it yet; still trying to figure out what’s going on. Thanks for your patience.


#7

Okay, now I fixed it.


#8

Confirmed. It works now.
Thanks Nick!


#9

thanks it works :smiley: