Comments (29)
Maybe related maybe not. I got APIResponseError: API token is invalid too. I made a mistake and copied too much off the database link. I correctly started after https://www.notion.so/ but I didn't stop before the ? mark. Hope this helps anyone else.
Once I removed the extra digits, all seems to work as intended.
from notero.
Hello @dvanoni. Thanks to your message, I understood my Integration Token was wrong (I thought it was the name and not the secret key). Now it's syncing !
Have a good day!
from notero.
@dvanoni
I solved it, but in a less than straightforward fashion. The token I copied directly from the key generator was wrong, apparently. What I did to make it work was open up the account settings in Notion, opened the connections side bar, then I clicked the individual ... settings for my notero connection and copied the token information from there.
Thanks for the help
from notero.
Hi @danielleeleblanc, thanks for reaching out!
I think I've seen this error message when I've copied the token incorrectly. If it was a valid token but the integration wasn't properly shared with your database, then I think you'd see an error message along the lines of "database not found."
So, my best guess is that there might have been a slight typo when the token was copied from the Notion integrations page into Zotero. Perhaps a space snuck in at the beginning or end of the token?
from notero.
Thanks for getting back to me on this @dvanoni and @gregdyche !
I tried re-copying and pasting both the Database ID and the Integration Token ID (re: your suggestions) into Notero Preferences. However, now I'm getting a new error message (see below).
from notero.
@danielleeleblanc this is progress! This error means your API token is working correctly, but there's still something missing that's preventing access to the database you want to use.
Have you gone through the steps in the "Could not find database" FAQ in the README?
from notero.
@dvanoni good to hear! I have followed the steps from the FAQ you shared but am still getting the same warning for some reason?
from notero.
@danielleeleblanc would you mind sharing a couple things with me so I can see if something is off?
- The link to your database
- A screenshot of the share menu for your database (like this)
Thanks!
from notero.
@dvanoni sure thing, please see below!
Database: https://www.notion.so/0802b28636b64a97a9296f78f13e0af5?v=9726e4251e564b5d9bafd7bf3bcd1214
from notero.
@danielleeleblanc darn, I'm really stumped on this one! Everything looks good to me.
The only other thing I can think to ask at this point is: do you happen to have multiple integrations set up with Notion? I'm just wondering if there's any chance a different integration token was copied into Zotero.
from notero.
@dvanoni No, just the one integration. Although I'm wondering if I'm copying the database ID correctly. I should be just copying between the 'https://www.notion.so/' and the ?, right?
from notero.
@danielleeleblanc yeah, it looks like you've copied the database ID correctly.
One other thing I just thought to check. When you view your integration at https://www.notion.so/my-integrations, are these boxes all checked?
from notero.
@dvanoni yes, all checked!
from notero.
@danielleeleblanc I'm quite baffled! I think all I have left at this point is the "turn it off and back on again" approach...
Would you mind trying the following to see if it helps at all?
- Uninstall the Notero plugin, restart Zotero, and reinstall Notero again
- Create a new Notion integration and put that new token into the Notero preferences
- Create a new Notion database and put its ID into the Notero preferences
I apologize for the hassle. I really haven't seen something like this before! 😕
from notero.
Hi, I've got the same problem. I tried approach above but failed.
from notero.
@hutianzhen just to clarify, are you seeing the API token is invalid
error or the Could not find database with ID
error?
I'm struggling to figure out how to debug this. To try ruling out something specific with Notero, would you be able to run a network request directly from you terminal? For example, using cURL:
curl 'https://api.notion.com/v1/databases/NOTION_DATABASE_ID' \
-H 'Authorization: Bearer '"NOTION_INTEGRATION_TOKEN"'' \
-H 'Notion-Version: 2022-02-22'
You'd need to replace NOTION_DATABASE_ID
and NOTION_INTEGRATION_TOKEN
with the values that you pasted into the Notero Preferences.
from notero.
I solve this by unlocking the advanced template. When I duplicate the advanced example to my own notion account, a locked button(prevent accidental editing) appears next to the title, click the button.
from notero.
@hutianzhen that's an interesting discovery! To be honest, I'm not entirely sure why having the database locked would cause these API errors. I thought locking only impacted the ability to modify properties of the database rather than adding pages to the database. But I'm glad you were able to get things working!
@danielleeleblanc is it possible that you're running into the same issue?
from notero.
@hutianzhen could you elaborate on where you're seeing a locked button? I'm not sure I see this on my page.
from notero.
@danielleeleblanc Please see below
- Duplicate the advanced example to your own notion account.
- Open Notero advanced. Notice the red box in the picture.
from notero.
@hutianzhen hm, just tried this, and i'm still getting this message.
from notero.
got the same errors as @danielleeleblanc had. did all the measure mentioned above still getting the same API Response Error. My guess is the database ID format or atleast the shared link has changed compared to what is found on @dvanoni 's docs.
from notero.
@mpmangubat would you mind sharing the link to your Notion database and also the value that you've entered for the Database ID in the Notero Preferences window? I'm curious if something has indeed changed as you mentioned. Thanks!
from notero.
Here is possible answer: https://stackoverflow.com/a/74413640
from notero.
you should just bind you dataBase with your integration by going to your dataBase and click on tree point up in right choose add connection then you can connect it with you integration.
from notero.
I may have found the problem. In my case I copied the Notion page ID instead of the database ID. It appears that when you first create an empty page and then add a database to it, the IDs will be different. I got the database ID by copying a link to a specific view and then extracting the ID from the link. Now it works :)
from notero.
Hello,
I have the "APIResponseError: API token is invalid". I double-checked the token, and it is correct. However, my databaseID is not like what's expected... I have "https://www.notion.so/{numbers}?v={other}" without my workspace name. I tried with {numbers}, {numbers}?v={other} and it's not working.
from notero.
Hi @cbeaumard, the {numbers}
part of the URL should be correct.
I just performed some tests to see what scenarios would trigger the "API token is invalid" error, and it only occurred when I modified the integration token (rather than the database ID).
I generated a few different tokens on https://www.notion.so/my-integrations, and it looks like they're all 50 characters long.
Here's a screenshot of what the values look like for me. Do yours look similar?
from notero.
I'm glad you solved it, @vlwbirds!
I'm hoping to making this process much less error prone by changing Notero to be an integration that can connect directly to your Notion account so that you don't have to copy and paste the token or database ID.
from notero.
Related Issues (20)
- Notero Preferences Not Showing in V7 Beta HOT 2
- Notero preferences section can not be located. HOT 2
- Notero not syncing HOT 2
- Disruption of Drag-and-Drop Feature During Notero Sync HOT 2
- Note sync fails when encountering invalid URL HOT 4
- Integration token HOT 1
- Error in Syncing - APIResponseError: body failed validation HOT 5
- Notero not compatible with OSX Zotero Version 6.0.8 HOT 1
- API Response Error HOT 4
- Synchronize Zotero's document merge operations to Notion HOT 3
- Sync Images in Notes HOT 2
- Issue with Zotero Syncing with Notion Webpage but not Notion Desktop app HOT 1
- Notero no longer "syncing" my sources: SYNC SAYS IT HAPPENS BUT IT DOESNT HOT 7
- Database in Notero Preferences not fillable HOT 6
- Notero is not functioning HOT 3
- Delete Notion tag from papers HOT 1
- Zotero URLs not populating for newly added items HOT 5
- APIResponseError: query failed validation. HOT 2
- Not allowed to configure database ID in Notero HOT 2
- Publication (Journal) didn't sync. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notero.