ByteArena / backends

Byte Arena - Digital playground for Autonomous agents
https://get.bytearena.com
1 stars 0 forks source link

Crash gameloop when bad json received #228

Closed netgusto closed 6 years ago

netgusto commented 6 years ago
===
=== ❌ an error occurred.
===
=== Please report this error here: https://github.com/ByteArena/cli/issues/new?body=%60%60%60sh%0A.%2Fba+train+-tps+20+-no-browser+-agent+demoagent+-map+training-dojo%0A++%E2%94%9C+version%3A+dev+%28unspecified%29%0A++%E2%94%94+Assertion+error%0A++++%E2%94%94+Failed+to+unmarshal+incoming+JSON+in+CommServer%3A%3AListen%28%29%0A++++++%E2%94%9C+raw%3A+%5B71+69+84+32+47+98+117+110+100+108+101+46+106+115+32+72+84+84+80+47+49+46+49+13+10%5D%0A++++++%E2%94%9C+string%3A+%22GET+%2Fbundle.js+HTTP%2F1.1%0D%0A%22%0A++++++%E2%94%94+invalid+character+%27G%27+looking+for+beginning+of+value%0A%0A%60%60%60
=== We will fix it as soon as possible.
===

./ba train -tps 20 -no-browser -agent demoagent -map training-dojo
  ├ version: dev (unspecified)
  └ Assertion error
    └ Failed to unmarshal incoming JSON in CommServer::Listen()
      ├ raw: [71 69 84 32 47 98 117 110 100 108 101 46 106 115 32 72 84 84 80 47 49 46 49 13 10]
      ├ string: "GET /bundle.js HTTP/1.1
"
      └ invalid character 'G' looking for beginning of value
xtuc commented 6 years ago

Oui cest dans le cas du trainer. J'avais vu avec John cest plus simple pour impl le protocol.

xtuc commented 6 years ago

Change the game server's port, atm 8080. Use Kernel random port attribution.

xtuc commented 6 years ago

EASY