Skip to content

Unexpected add format #1

Description

@srepmub

hi,

thanks a lot for this client. it looks quite clean, and the test_client.py is very useful to start.

I've tried to use it to talk to a Z-Push server (http://z-push.org/), and ran into the following problem:

PROCESS COMMAND Add
ERROR: Unexpected add format: {'Sync': {'Collections': {'Collection': {'Status': '1', 'SyncKey': '{8a259d14-c402-475c-a96d-3de404862830}6', 'Commands': {'Add': {'ServerId':....

so apparently a list of commands is expected for 'Commands', instead of a single command/dict. after adding an 'if isinstance(commands, dict): commands = [commands]' it works and I can sync my inbox nicely, though this probably isn't the correct fix..?

thanks again.
mark dufour.
kopano developer: https://kopano.com/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions