-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Failed to save item(s) to Notion TypeError: content.text is undefined #1
Comments
Hey, Lisa! Thanks for this great feedback and detailed bug report! I too had never seen Zotero plugin code until I started working on this, and let me tell you, it's not the most straightforward environment to work in. 😅 I spent hours reading through Zotero source to get this first version out, and I'm sure there's some gotchas I'm completely missing. e.g. I know there's another bug that completely breaks the plugin if you close the Zotero window (without quitting the app) and open it again. With the info you've provided, I can at least say I think the issue is related to generating the citations for the item (source). I've also been testing on Mac with the same version of Zotero as you and using APA 7th ed, so my gut tells me it may have something to do with one of the other plugins. I'll try installing some of those plugins to see if I can reproduce the error you encountered. Would you be willing to try disabling some of your plugins to see if any of them appear to be causing the error? Thanks! |
🤖 this is your friendly neighborhood build bot announcing test build 0.1.1.9 ("Log Quick Copy format and use function for callback instead of undefined") Install in Zotero by downloading test build 0.1.1.9, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...". |
Hey, Lisa. I tried installing all the plugins you have, but I haven't been able to reproduce the error yet. The last error message in the screenshot of your console ( I've just created another build of the plugin (see bot comment above) where I'm trying a potential fix and also added a log message to see what format is being used when trying to generate the citation. Would you mind installing that build and letting me know if you see a log message like the one below? Thanks! |
Oh also, I forgot to mention that I added a Developer Setup section to the README that should hopefully get you up and running with a local build of the plugin if you want to try hacking on it yourself! |
Hi @dvanoni, if it helps, I get the same error as @lisaross but the only plugin we have in-common is "Better BibTex for Zotero". Some other useful info: Zotero: 5.0.96.3 I stumbled across this repo earlier as I was trying to figure our if Notion would be compatible with my workflow. Thanks so much for sharing this! I'd love to help at some point if need be, although I'd be a novice to Zotero plugins also! |
Hey @alexlyttle, thanks for the additional feedback! This helps narrow things down. I'm still trying to determine if the issue is caused by some sort of setting within Zotero itself or within Better BibTeX. Would you be able to do me a favor and install test build 0.1.1.9, and then after trying to drag an item into the collection, open the error console (Tools → Developer → Error Console). I'm hoping it will output a message that starts with Thanks! |
I get the following error:
|
@alexlyttle thank you! This helped me reproduce the issue! Here's what I think is happening... When saving items to Notion, I use Zotero's citation export feature to build the title of the page in Notion and the I believe the error we're encountering occurs when an Export Format is selected for this preference because they behave differently than the Citation Styles and don't immediately return an object with a I've also realized that several of the Citation Styles aren't really useful as a page title because the in-text citation is just a number that references the bibliography item. For now, I've changed this so it's hard-coded to use APA 7th ed, but I imagine some folks (perhaps yourself?) may want a BibTeX format for this instead. I'm about to push another test build that should show up as a comment on this issue. Would you mind downloading that and giving it a try to see if it works for you? |
🤖 this is your friendly neighborhood build bot announcing test build 0.1.1.10 ("Ensure Notion text properties do not exceed max supported length") Install in Zotero by downloading test build 0.1.1.10, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...". |
Thanks for looking into this! My default is "Better BibLaTeX", which exports the citation data in BibTeX syntax. It looks like Citation Styles generates an in-text citation and Export Formats exports the citation data. I can see why this caused an issue. I downloaded the test build 0.1.1.10 and it worked! The name field in Notion looked like this "(Example et al., 2021)" including the parentheses. In my option, the APA citation style works well, but in the future configuring this style could be a setting for Notero? |
Thanks for the feedback! I'm glad it worked for you! I'll go ahead and release a proper update with this fix. And yes, I think being able to configure the style is a great idea. Out of curiosity, since you're using BibTeX, would a name field using the BibTeX cite key (e.g. |
Thanks! A BibTeX citation key as the name is a good idea! If that's straightforward to add, it would be a nice to have the option. Plus, citation keys are unique, helping in the case where you have two papers by the same author in the same year. That being said, the current APA style does look good for inline citations in Notion. |
OMG you guys. @alexlyttle and @dvanoni I didn't even know this thread was happening and I get the notice it's resolved and I was of NO USE to the discussion at ALL. SO SORRY. You are amazing and I'm going to figure out why my github notifications are busted... thank you both SO much. |
Hi @dvanoni I am having the exact same problem with citation format. I am trying to fix it by downloading the test build 0.1.1.10 but for some reason it re directs me to a page that no longer exists. Where can I download it from? Thanks a lot! |
Hi @sofivieto! The latest version of the plugin should have the original fix from this issue, so you'll want to use that. If you were encountering this issue on the latest version, I'm curious what's making it occur again. Can you share which citation format you're currently using for the "Quick Copy" setting described above? |
Hi @dvanoni I re install everything and still getting some errors. I am using APA 7th edition as citation format and I'm getting this errors: |
Hi @sofivieto, thanks for sharing those screenshots. It looks like all those errors are unrelated to Notero, so we'll need to keep digging a bit. When you try to perform a sync, do you see an error message pop up in the bottom-right corner of the screen? If Notero is encountering an error, I think that's where we should see it. This isn't the right error message, but it should look something like this: |
Hi @dvanoni I think I was getting a different message before I was using the updated version of the plugin, but I am getting this now: |
@sofivieto thanks for that new screenshot. Some other folks have run into this same error before. Is there anything in #62 or #71 that's able to help you? |
I finally solved it, @dvanoni thank you so much. The plugin is amazing! |
Hi, @thesimranvenkat! My best guess is that you might have an extra part in the Database ID field in the Notero preferences. If the field currently looks something like this:
then you'll want to remove everything from the
Let me know if that helps! |
Yup that's exactly right, figured it out just a minute after, when I surveyed all the other issues. Thank you so much!
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: David Hoff-Vanoni ***@***.***>
Sent: Tuesday, November 29, 2022 1:45:53 PM
To: dvanoni/notero ***@***.***>
Cc: thesimranvenkat ***@***.***>; Mention ***@***.***>
Subject: Re: [dvanoni/notero] Error: Failed to save item(s) to Notion TypeError: content.text is undefined (#1)
Hi, @thesimranvenkat<https://github.com/thesimranvenkat>! My best guess is that you might have an extra part in the Database ID field in the Notero preferences.
If the field currently looks something like this:
699ac4ba280c42ff94e1b8e1aab0879c?v=d318de96ca0742ea843917edca38608
then you'll want to remove everything from the ? onward so that it's just the first 32 characters, like this:
699ac4ba280c42ff94e1b8e1aab0879c
Let me know if that helps!
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATBCQJU2SNKKK522QDRZ6CDWKWRCDANCNFSM5FFCRG2A>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi, @caitlin-ann! I'm glad you've been enjoying Notero! This error means that either the Notion database or one of the pages within it was deleted (archived), and Notero is unable to access it when trying to sync. Specifically, this happens when Notero attempts to update a page that it previously synced. Have you changed anything with your Notion setup recently? If you're able to narrow down the Zotero item that's causing you trouble, you can try deleting the "Notion" link attached to it. If you delete that link and then try syncing again, Notero will create a new page in Notion instead of trying to update the archived page. The "Sync to Notion" item from the right-click menu can make this a bit easier. Let me know if this helps! CleanShot.2023-02-07.at.22.21.27-converted.mp4 |
Hiya! First, I just wanted to say thank you SO MUCH for building this integration omg
Second, I'm coming across an error when I move my item into the collection that I have set up to go into Notion. I've forked your code to see if I can uncover the issue and fix/send a PR, but I've never seen zotero plugin code so I'll have to carve out time to learn the structure if I'm going to be of any service. Meantime, I thought I'd pop some troubleshooting info here for you in case you find an easy fix.
Some troubleshooting details:
Here's a screenshot of the error:
Here's a screenshot of the console after trying to move into collection
Not much to work with, I'm afraid. I'll keep in touch and please let me know if you have any ideas/guidance you could provide.
Thanks again! This is going to be huge - I've seen lots of people in the academic and note-taking spaces talking about how painful reference management in Notion and Roam Research are. Roam has a great plugin that uses pinned betterbibtex citation keys as the title in the roam db to keep them unique. Here's the link for that in case you find it useful: https://alix-lahuec.gitbook.io/zotero-roam/
Thanks again!
The text was updated successfully, but these errors were encountered: