ServerBinding object is not JSON serializable

I have Nuxeo 6.0.0 platform with Nuxeo Drive plugin 1.4.3 installed. I installed Nuxeo Drive client for Ubuntu (14.04) as mentionned here

I've got that error in terminal:

2015-01-20 09:46:28,449 1359 140269865395968 ERROR    nxdrive.engine.synchronizer Error in synchronization thread: <nxdrive.engine.dao.model.ServerBinding object at 0x7f932402a510> is not JSON serializable
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nxdrive/engine/", line 207, in run
  File "/usr/local/lib/python2.7/dist-packages/nxdrive/engine/", line 1635, in loop
  File "/usr/local/lib/python2.7/dist-packages/nxdrive/engine/", line 1916, in update_synchronize_server
    server_binding, session=session)
  File "/usr/local/lib/python2.7/dist-packages/nxdrive/engine/", line 1687, in _get_remote_changes
    summary = remote_client.get_changes(server_binding)
  File "/usr/local/lib/python2.7/dist-packages/nxdrive/client/", line 238, in get_changes
  File "/usr/local/lib/python2.7/dist-packages/nxdrive/client/", line 311, in execute
    data = json.dumps(json_struct)
  File "/usr/lib/python2.7/json/", line 243, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python2.7/json/", line 207, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python2.7/json/", line 270, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python2.7/json/", line 184, in default
    raise TypeError(repr(o) + " is not JSON serializable")

I don't know if it is a problem of version compatibility between nuxeo drive client and plugin but it isn't mentionned that it needs to be in phase.

0 votes

1 answers



Finally I found a solution to my problem. From here:

It is mentionned by ataillefer that master branch of nuxeo drive client isn't always stable. So I installed 1.4 branch and it works well now.

Maybe it would be useful to update the documentation.

0 votes

Yes you're right, just updated the documentation. Sorry for the inconvienence.