Settings sync fails due to exceeding API limits
Hiya,
I just migrated to zotero and now the settings sync dies due to more than 150 settings being synced at once. The API limits syncing to 150 settings at a time, but the client code doesn't split settings to sync in access of 150 into appropriately sized batches.
(3)(+0000004): Uploading 202 settings
(3)(+0000000): Sending If-Unmodified-Since-Version: 973
(3)(+0000000): [ConcurrentCaller] Running function (0/4 running, 0 queued)
(3)(+0000001): HTTP POST "{"lastPageIndex_u_4RDTDEU3":{"value":4},"lastPageIndex_u_S6JZXMQ4":{"value":3},"lastPageIndex_u_R7KFQMLK":{"value":4},"lastPageIndex_u_RARMRU55":{"value":5},"lastPageIndex_u_JNX6MH83":{"value":0},"lastPageIndex_u_44CP3ITM":{"value":0},"lastPageIndex_u_7GF4XDYH":{"value":0},"lastPageIndex_u_3JB4SQFI":{"value":0},"lastPageIndex_u_8AI4Q3MX":{"value":0},"lastPageIndex_u_R58ELTTJ":{"value":0},"lastPageIndex_u_WSJJ7QZE":{"value":0},"lastPageIndex_u_6V6RGNH5":{"value":0},"lastPageIndex_u_DQNDAART":{"value":1},"lastPageIndex_u_IIVID8ML":{"value":0},"lastPageIndex_u_3PTEVS59":{"value":0},"lastPageIndex_u_ESEIXC3K":{"value":0},"lastPageIndex_u_YKGUJVUM":{"value":6},"lastPageIndex_u_95KDBIJQ":{"value":4},"lastPageIndex_u_3AVSUAJT":{"value":2},"lastPageIndex_u_3QXD8H6D":{"value":0},"lastPageIndex_u_8R24F2QY":{"value":0},"lastPageIndex_u_8B725LH3":{"value":0},"lastPageIndex_u_UXYVC3SA":{"value":0},"lastPageIndex_u_DRM5XHMR":{"value":0},"lastPageIndex_u_HM2ZFHU6":{"value":0},"lastPageIndex_u_6E76II2D":{"value":0},"lastPage…" (7879 chars) to https://api.zotero.org/users/5472474/settings
(3)(+0000001): POST body gzipped from 7879 to 1487; 81% savings
(1)(+0000158): HTTP POST https://api.zotero.org/users/5472474/settings failed with status code 413: Cannot add more than 150 settings at a time
I just migrated to zotero and now the settings sync dies due to more than 150 settings being synced at once. The API limits syncing to 150 settings at a time, but the client code doesn't split settings to sync in access of 150 into appropriately sized batches.
(3)(+0000004): Uploading 202 settings
(3)(+0000000): Sending If-Unmodified-Since-Version: 973
(3)(+0000000): [ConcurrentCaller] Running function (0/4 running, 0 queued)
(3)(+0000001): HTTP POST "{"lastPageIndex_u_4RDTDEU3":{"value":4},"lastPageIndex_u_S6JZXMQ4":{"value":3},"lastPageIndex_u_R7KFQMLK":{"value":4},"lastPageIndex_u_RARMRU55":{"value":5},"lastPageIndex_u_JNX6MH83":{"value":0},"lastPageIndex_u_44CP3ITM":{"value":0},"lastPageIndex_u_7GF4XDYH":{"value":0},"lastPageIndex_u_3JB4SQFI":{"value":0},"lastPageIndex_u_8AI4Q3MX":{"value":0},"lastPageIndex_u_R58ELTTJ":{"value":0},"lastPageIndex_u_WSJJ7QZE":{"value":0},"lastPageIndex_u_6V6RGNH5":{"value":0},"lastPageIndex_u_DQNDAART":{"value":1},"lastPageIndex_u_IIVID8ML":{"value":0},"lastPageIndex_u_3PTEVS59":{"value":0},"lastPageIndex_u_ESEIXC3K":{"value":0},"lastPageIndex_u_YKGUJVUM":{"value":6},"lastPageIndex_u_95KDBIJQ":{"value":4},"lastPageIndex_u_3AVSUAJT":{"value":2},"lastPageIndex_u_3QXD8H6D":{"value":0},"lastPageIndex_u_8R24F2QY":{"value":0},"lastPageIndex_u_8B725LH3":{"value":0},"lastPageIndex_u_UXYVC3SA":{"value":0},"lastPageIndex_u_DRM5XHMR":{"value":0},"lastPageIndex_u_HM2ZFHU6":{"value":0},"lastPageIndex_u_6E76II2D":{"value":0},"lastPage…" (7879 chars) to https://api.zotero.org/users/5472474/settings
(3)(+0000001): POST body gzipped from 7879 to 1487; 81% savings
(1)(+0000158): HTTP POST https://api.zotero.org/users/5472474/settings failed with status code 413: Cannot add more than 150 settings at a time
I guess this isn't very high on your todo list then, is there something I can do to fix my problem in the meantime? js console wise or so?
Thank you for the quick fix!