gryphius / makerbot-gen5-api

python API for the makerbot 5th generation 3D printers
GNU Lesser General Public License v3.0
33 stars 11 forks source link

Module random crash #9

Closed MeGaPk closed 8 years ago

MeGaPk commented 8 years ago

And i give this error:

Unhandled exception in thread started by <bound method BirdwingNetworkConnection._rpc_reader_thread of <birdwing_sender.BirdwingNetworkConnection object at 0x0336D130>>
Traceback (most recent call last):
  File "...\makerbotapi\makerbotapi.py", line 459, in _rpc_reader_thread
    message, rest = self._rpc_get_next_message(buffer)
  File "...\makerbotapi\makerbotapi.py", line 468, in _rpc_get_next_message
    assert buffer.startswith('{'), 'invalid buffer state %s' % buffer
AssertionError: invalid buffer state "result": {"bot_type": "mini_4", "api_version": "1.5.0", "ip": "192.168.10.45", "firmware_version": {"bugfix": 0, "minor": 8, "build": 376, "major": 1}, "machine_name": "MakerBot Replicator Mini", "sound": true, "current_process": null, "has_been_connected_to": false, "toolheads": {"extruder": [{"index": 0, "tool_id": 7, "current_temperature": 58, "preheating": false, "tool_present": true, "target_temperature": 0, "filament_presence": true}]}, "machine_type": "tinkerbell", "disabled_errors": []}, "jsonrpc": "2.0", "id": 318}