notero icon indicating copy to clipboard operation
notero copied to clipboard

Sync PDF parent item instead of silently failing

Open phd22 opened this issue 10 months ago • 13 comments

Describe the issue Whenever I click "sync to notion," on Zotero, nothing happens. It doesn't show the arrows indicating a sync and nothing will appear in notion. This started randomly occurring a couple of weeks ago. I have updated the connection in Zotero. I have tried turning off Notero on Zotero and turning it back on. Did the same thing on notion.

To Reproduce Steps to reproduce the behavior:

  1. Go to Zotero
  2. Right Click on PDF
  3. Click "Sync to Notion"

Expected behavior Nothing populates in Notion and there is no signal of syncing. No error message is displayed.

phd22 avatar Feb 18 '25 22:02 phd22

Hi @phd22, thanks for reporting this. Would you mind trying to sync another item and then sending a screenshot of the Zotero logs? You can open the logs from the menu: Tools > Developer > Error Console

dvanoni avatar Feb 18 '25 22:02 dvanoni

Sure, this is what I see.

Image

phd22 avatar Feb 19 '25 05:02 phd22

Thanks for sharing that, @phd22. The No valid items to sync message there means the item you're trying to sync is not a supported type. Would you mind sending a screenshot of the item you're trying to sync?

dvanoni avatar Feb 19 '25 07:02 dvanoni

Yes sure, here's a snapshot of the items I've tried syncing. Almost everything is a PDF or full text, but these are all items I have been able to sync in the past without any errors.

Image

phd22 avatar Feb 19 '25 21:02 phd22

Ah okay, that's the issue! You need to sync the parent item rather than the PDF item.

Image

I think this is something that can be improved in Notero. We should be able to grab the parent item automatically and sync that as desired.

Let me know if this works for you!

dvanoni avatar Feb 19 '25 21:02 dvanoni

I can now see the "syncing to notion" notification, but it still isn't populating in Notion - here's the screenshot

Image

phd22 avatar Feb 19 '25 21:02 phd22

Interesting. 🤔 Do you see a new "Notion" link item under the parent item? (You may need to close and reopen the parent item.)

Image

If you do see that Notion item, what happens if you double-click it?

dvanoni avatar Feb 19 '25 21:02 dvanoni

Image

Nope, no "Notion" link under the item. This is what I see when I double click.

phd22 avatar Feb 19 '25 22:02 phd22

Would you mind sharing another screenshot of the logs after you perform a sync? I'm curious if we can see any error that's not appearing in the popup for some reason.

dvanoni avatar Feb 19 '25 22:02 dvanoni

Image

phd22 avatar Feb 19 '25 22:02 phd22

Hmm well I don't see any errors there, so I do believe it should be syncing. Would you mind trying a couple things?

  • Restart Zotero and see if the "Notion" link item appears for the item you synced. If it does, double-click it and see if that opens Notion to the desired page.
  • Restart/refresh Notion and then try to search your database for the item you synced.

dvanoni avatar Feb 19 '25 22:02 dvanoni

That worked!! Thankyou!

phd22 avatar Feb 19 '25 23:02 phd22

Ah ha! The good old "turn it off and back on" fix! I'm glad it's working!

I'm going to leave this issue open as a reminder to improve the sync process so that it automatically uses the intended parent item instead of silently failing.

dvanoni avatar Feb 19 '25 23:02 dvanoni