Skip to content

Server responded with: 400, Invalid request. #133

@vonpupp

Description

@vonpupp

Hello,

I am trying to sync gc to bb. I am getting the following error:

[02:11:38.952     INFO] Successfully created BBDB entry for        ...
[02:11:38.952     INFO] Saving BBDB File /home/av/.bbdb...
[02:11:39.591     INFO] Saving BBDB File /home/av/.bbdb...done
[02:11:39.617     INFO] Uploading Remote ItemIDs to Google...
[02:11:40.796 CRITICAL] Exception (Server responded with: 400, Invalid request.) while syncing profile vonpuppgcbb
[02:11:40.798 CRITICAL] Traceback (most recent call last):
  File "/home/av/bin/ASynK/asynk/asynk_core.py", line 401, in op_sync
    result = sync.sync(self.get_sync_dir())
  File "/home/av/bin/ASynK/asynk/sync.py", line 299, in sync
    ret1 = sl1.sync_to_folder(self.get_f2())
  File "/home/av/bin/ASynK/asynk/sync.py", line 499, in sync_to_folder
    res1 = self.send_news_to_folder(df)
  File "/home/av/bin/ASynK/asynk/sync.py", line 447, in send_news_to_folder
    res = res and self.fold.writeback_sync_tags(self.get_pname(), items)
  File "/home/av/bin/ASynK/asynk/folder_gc.py", line 452, in writeback_sync_tags
    rf = self.get_db().exec_batch(f, extra_headers=eh)
  File "/home/av/bin/ASynK/asynk/pimdb_gc.py", line 365, in exec_batch
    gdata.contacts.client.DEFAULT_BATCH_URL)
  File "/home/av/bin/ASynK/asynk/pimdb_gc.py", line 50, in patched_post
    desired_class=desired_class, **kwargs)
  File "/home/av/bin/ASynK/lib/gdata/client.py", line 319, in request
    RequestError)
RequestError: Server responded with: 400, Invalid request.

I had a look at the source code and It is breaking on line 452 of folder_gc. I have no clue why. If I use the --direction 1way flag, it works fine, so It seems to be on the way back from bb to gc where the problem is.

More info on my current situation, I have +2600 contacts and the bbdb is more than 1Mb.

Furtheremore I had some issues with linebreaks on comments that I manually got rid, but now some weird "state" seems to be saving that 900 contacts do not need to be fetched. My bbdb db has only 1732 contacts, so 900 are missing. I haven't found any information on how to reset the state on the documentation. I removed the config and started everything from scratch but it is always like this:

[10:47:06.951     INFO] ==== gc =====
[10:47:06.951     INFO]    New              :  1732
[10:47:06.951     INFO]    Modified         :   900
[10:47:06.951     INFO]    Unchanged        :     0
[10:47:06.951     INFO]                       =====
[10:47:06.952     INFO]    Total Entries    :  2632
[10:47:06.952     INFO]    Deleted          :     0

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