Zotero2Readwise icon indicating copy to clipboard operation
Zotero2Readwise copied to clipboard

Sync failing - Process completed with exit code 1.

Open bvendsel opened this issue 1 year ago • 8 comments

Pasted Graphic 1

bvendsel avatar Apr 14 '23 17:04 bvendsel

image

bvendsel avatar Apr 14 '23 17:04 bvendsel

@bvendsel Can you run follow instructions on running the script through a Python terminal as shown here to generate a local json file of highlights that were failed. You can check the highlights to see if there is anything strange.

Based on the error code (400 bad request), It seems to me that there are some highlights that might break the Readwise restrictions. For instance, Readwise sets limits to the number of characters per highlight.

e-alizadeh avatar Apr 15 '23 02:04 e-alizadeh

@e-alizadeh I did what you asked and got an empty json file back. I'm fairly certain it isn't a highlight as i recently archived off my old library and started fresh as part of a new job. Unless that could have caused a problem?

bvendsel avatar Apr 17 '23 23:04 bvendsel

@bvendsel Based on your description, there seems to be something wrong with your new setup, because I haven't updated the library, nor I see a Readwise API change that may impact the library.

Just a curiosity question, is there by any chance a change in the following items that are used as environment variables?

  • Readwise access token
  • Zotero API key
  • Zotero personal or group ID

Based on the log in your screenshot "0 Zotero items are retrieved.", the issue most likely is due to a change in Zotero settings.

e-alizadeh avatar Apr 24 '23 04:04 e-alizadeh

There shouldn't be but there is always a chance. Thanks for your help. I'll just clear everything out and start again. Too useful not to have working :)

On Sun, Apr 23, 2023 at 9:04 PM Essi Alizadeh @.***> wrote:

@bvendsel https://github.com/bvendsel Based on your description, there seems to be something wrong with your new setup, because I haven't updated the library, nor I see a Readwise API change that may impact the library.

Just a curiosity question, is there by any chance a change in the following items that are used as environment variables?

  • Readwise access token
  • Zotero API key
  • Zotero personal or group ID

— Reply to this email directly, view it on GitHub https://github.com/e-alizadeh/Zotero2Readwise/issues/43#issuecomment-1519352580, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALYCKCCQ55C7KVEH4APYYDXCX3UZANCNFSM6AAAAAAW6WWB2A . You are receiving this because you were mentioned.Message ID: @.***>

bvendsel avatar Apr 24 '23 21:04 bvendsel

Hi, I'm having this same issue, but with this json file generated for failed items. It seems to be an issue with the author field? How can I identify which items are causing the issues?

(json file changed to txt just to be able to upload) error_log_400_failed_post_request_to_readwise.txt

alibrack avatar Sep 13 '23 21:09 alibrack

@alibrack I got a chance to look at this. The issue comes from the fact that I only export Responses from Readwise (https://github.com/e-alizadeh/Zotero2Readwise/blob/142f8eb417da9e365d20ad391b25a3362b932f61/zotero2readwise/readwise.py#L71).

If you still have the issue I can update the code to export the error along with the highlight itself?

e-alizadeh avatar Sep 24 '23 17:09 e-alizadeh

That would be really helpful! I am still having the issue, yes. On Sep 24, 2023, at 1:04 PM, Essi Alizadeh @.***> wrote: @alibrack I got a chance to look at this. The issue comes from the fact that I only export Responses from Readwise (https://github.com/e-alizadeh/Zotero2Readwise/blob/142f8eb417da9e365d20ad391b25a3362b932f61/zotero2readwise/readwise.py#L71). If you still have the issue I can update the code to export the error along with the highlight itself?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

alibrack avatar Sep 24 '23 17:09 alibrack