dvanoni / notero

A Zotero plugin for syncing items and notes into Notion
https://download.notero.vanoni.dev
MIT License
2.29k stars 99 forks source link

Error: Missing Notion Database ID #515

Open Historificando-0707 opened 3 months ago

Historificando-0707 commented 3 months ago

I'm experiencing an error, I can insert the token, but the database is a box where I can't insert anything, and when I try to synchronize, the title error message appears in the bottom right corner

Captura de tela 2024-06-11 192150

image

dvanoni commented 3 months ago

Hi @Historificando-0707, the "No databases are accessible" error in your screenshot indicates that the Notero integration has not been given access to your Notion database. Please confirm that you've completed step 4 of the Configure Notion section of the readme, and let me know if you're still having trouble.

Historificando-0707 commented 3 months ago

Yes, I completed step 4 of the configuration and I still have this problem

dvanoni commented 3 months ago

@Historificando-0707, would you mind running a line of code in Zotero and sharing the output with me?

  1. Navigate to Tools → Developer → Run JavaScript
  2. Enable the Run as async function checkbox
  3. Paste the following code and then click the Run button
    return Zotero.Notero.getNotionClient().search();

I'm hoping to see something like this:

CleanShot 2024-06-15 at 09 02 32@2x

miriamdong commented 3 months ago

I have the same issue. Mine shows: { "object": "list" "results": [] "next_cursor": null "has_more": false "type": "page_or_database" "page_or_database": {} "request_id": "45e160f3-c823-46e5-83e7-f4fed844f7b" }

Historificando-0707 commented 3 months ago

I did what you said and this was the response:

{
    "object": "list"
    "results": [
        "0": {
            "object": "page"
            "id": "f33f2c08-6f8a-4716-bdc3-9175ae5fcd20"
            "created_time": "2023-05-10T17:33:00.000Z"
            "last_edited_time": "2024-06-14T21:25:00.000Z"
            "created_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "last_edited_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "cover": {
                "type": "external"
                "external": {
                    "url": "https://www.notion.so/images/page-cover/rijksmuseum_claesz_1628.jpg"
                }
            }
            "icon": {
                "type": "external"
                "external": {
                    "url": "https://www.notion.so/icons/push-pin_lightgray.svg"
                }
            }
            "parent": {
                "type": "workspace"
                "workspace": true
            }
            "archived": false
            "in_trash": false
            "properties": {
                "title": {
                    "id": "title"
                    "type": "title"
                    "title": [
                        "0": [object Object] <<Maximum depth reached>>
                    ]
                }
            }
            "url": "https://www.notion.so/Sites-uteis-f33f2c086f8a4716bdc39175ae5fcd20"
            "public_url": null
        }
        "1": {
            "object": "page"
            "id": "fa054fb6-bd21-4e68-8d5a-bfb5053d4f4e"
            "created_time": "2024-01-20T15:22:00.000Z"
            "last_edited_time": "2024-06-14T21:17:00.000Z"
            "created_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "last_edited_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "cover": null
            "icon": null
            "parent": {
                "type": "page_id"
                "page_id": "f33f2c08-6f8a-4716-bdc3-9175ae5fcd20"
            }
            "archived": false
            "in_trash": false
            "properties": {
                "title": {
                    "id": "title"
                    "type": "title"
                    "title": [
                        "0": [object Object] <<Maximum depth reached>>
                    ]
                }
            }
            "url": "https://www.notion.so/Edi-o-de-Video-fa054fb6bd214e688d5abfb5053d4f4e"
            "public_url": null
        }
        "2": {
            "object": "page"
            "id": "3363f9e6-8c52-4ef3-9405-6df2ad600fd6"
            "created_time": "2024-06-04T20:34:00.000Z"
            "last_edited_time": "2024-06-10T02:52:00.000Z"
            "created_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "last_edited_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "cover": null
            "icon": null
            "parent": {
                "type": "page_id"
                "page_id": "f33f2c08-6f8a-4716-bdc3-9175ae5fcd20"
            }
            "archived": false
            "in_trash": false
            "properties": {
                "title": {
                    "id": "title"
                    "type": "title"
                    "title": [
                        "0": [object Object] <<Maximum depth reached>>
                    ]
                }
            }
            "url": "https://www.notion.so/Streaming-e-Diversos-3363f9e68c524ef394056df2ad600fd6"
            "public_url": null
        }
        "3": {
            "object": "page"
            "id": "7ed7687e-fe3e-4ef3-a9ba-08a9277cecc0"
            "created_time": "2024-06-05T00:12:00.000Z"
            "last_edited_time": "2024-06-10T02:50:00.000Z"
            "created_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "last_edited_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "cover": null
            "icon": null
            "parent": {
                "type": "page_id"
                "page_id": "f33f2c08-6f8a-4716-bdc3-9175ae5fcd20"
            }
            "archived": false
            "in_trash": false
            "properties": {
                "title": {
                    "id": "title"
                    "type": "title"
                    "title": [
                        "0": [object Object] <<Maximum depth reached>>
                    ]
                }
            }
            "url": "https://www.notion.so/Wiki-de-7ed7687efe3e4ef3a9ba08a9277cecc0"
            "public_url": null
        }
        "4": {
            "object": "page"
            "id": "c85a5c92-d8e7-48af-98cc-e5e007a85caf"
            "created_time": "2023-09-21T12:15:00.000Z"
            "last_edited_time": "2024-06-10T02:48:00.000Z"
            "created_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "last_edited_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "cover": null
            "icon": null
            "parent": {
                "type": "page_id"
                "page_id": "f33f2c08-6f8a-4716-bdc3-9175ae5fcd20"
            }
            "archived": false
            "in_trash": false
            "properties": {
                "title": {
                    "id": "title"
                    "type": "title"
                    "title": [
                        "0": [object Object] <<Maximum depth reached>>
                    ]
                }
            }
            "url": "https://www.notion.so/Base-c85a5c92d8e748af98cce5e007a85caf"
            "public_url": null
        }
        "5": {
            "object": "page"
            "id": "f53093be-f118-4590-911e-f2e2dcb96269"
            "created_time": "2023-09-22T12:56:00.000Z"
            "last_edited_time": "2024-06-06T22:29:00.000Z"
            "created_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "last_edited_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "cover": {
                "type": "external"
                "external": {
                    "url": "https://www.notion.so/images/page-cover/nasa_bruce_mccandless_spacewalk.jpg"
                }
            }
            "icon": null
            "parent": {
                "type": "page_id"
                "page_id": "f33f2c08-6f8a-4716-bdc3-9175ae5fcd20"
            }
            "archived": false
            "in_trash": false
            "properties": {
                "title": {
                    "id": "title"
                    "type": "title"
                    "title": [
                        "0": [object Object] <<Maximum depth reached>>
                    ]
                }
            }
            "url": "https://www.notion.so/Isso-pode-me-ajudar-f53093bef1184590911ef2e2dcb96269"
            "public_url": null
        }
        "6": {
            "object": "page"
            "id": "cfd40793-67b4-4166-bb84-affc0358c0db"
            "created_time": "2024-01-30T19:16:00.000Z"
            "last_edited_time": "2024-06-05T00:10:00.000Z"
            "created_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "last_edited_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "cover": null
            "icon": null
            "parent": {
                "type": "page_id"
                "page_id": "f33f2c08-6f8a-4716-bdc3-9175ae5fcd20"
            }
            "archived": false
            "in_trash": false
            "properties": {
                "title": {
                    "id": "title"
                    "type": "title"
                    "title": [
                        "0": [object Object] <<Maximum depth reached>>
                    ]
                }
            }
            "url": "https://www.notion.so/TikTok-cfd4079367b44166bb84affc0358c0db"
            "public_url": null
        }
        "7": {
            "object": "page"
            "id": "0004387c-c90d-4118-8589-1de01a8b652f"
            "created_time": "2024-02-18T21:45:00.000Z"
            "last_edited_time": "2024-02-26T16:56:00.000Z"
            "created_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "last_edited_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "cover": null
            "icon": null
            "parent": {
                "type": "page_id"
                "page_id": "f33f2c08-6f8a-4716-bdc3-9175ae5fcd20"
            }
            "archived": false
            "in_trash": false
            "properties": {
                "title": {
                    "id": "title"
                    "type": "title"
                    "title": [
                        "0": [object Object] <<Maximum depth reached>>
                    ]
                }
            }
            "url": "https://www.notion.so/N-o-se-esque-a-0004387cc90d411885891de01a8b652f"
            "public_url": null
        }
        "8": {
            "object": "page"
            "id": "8173e20a-9f88-4ff6-8d97-864356f63473"
            "created_time": "2023-09-23T20:44:00.000Z"
            "last_edited_time": "2023-09-23T20:44:00.000Z"
            "created_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "last_edited_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "cover": null
            "icon": null
            "parent": {
                "type": "page_id"
                "page_id": "f33f2c08-6f8a-4716-bdc3-9175ae5fcd20"
            }
            "archived": false
            "in_trash": false
            "properties": {
                "title": {
                    "id": "title"
                    "type": "title"
                    "title": [
                        "0": [object Object] <<Maximum depth reached>>
                    ]
                }
            }
            "url": "https://www.notion.so/Edits-8173e20a9f884ff68d97864356f63473"
            "public_url": null
        }
        "9": {
            "object": "page"
            "id": "74c7bb57-d18f-4a41-bfbf-dd68f8fb7300"
            "created_time": "2023-09-21T12:14:00.000Z"
            "last_edited_time": "2023-09-21T13:02:00.000Z"
            "created_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "last_edited_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "cover": null
            "icon": null
            "parent": {
                "type": "page_id"
                "page_id": "f33f2c08-6f8a-4716-bdc3-9175ae5fcd20"
            }
            "archived": false
            "in_trash": false
            "properties": {
                "title": {
                    "id": "title"
                    "type": "title"
                    "title": [
                        "0": [object Object] <<Maximum depth reached>>
                    ]
                }
            }
            "url": "https://www.notion.so/Encontrar-parecidos-74c7bb57d18f4a41bfbfdd68f8fb7300"
            "public_url": null
        }
        "10": {
            "object": "page"
            "id": "e22212b6-06d1-4594-bb67-c2c4eb5874d5"
            "created_time": "2023-05-10T17:33:00.000Z"
            "last_edited_time": "2023-09-21T12:38:00.000Z"
            "created_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "last_edited_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "cover": null
            "icon": null
            "parent": {
                "type": "page_id"
                "page_id": "f33f2c08-6f8a-4716-bdc3-9175ae5fcd20"
            }
            "archived": false
            "in_trash": false
            "properties": {
                "title": {
                    "id": "title"
                    "type": "title"
                    "title": [
                        "0": [object Object] <<Maximum depth reached>>
                    ]
                }
            }
            "url": "https://www.notion.so/Dados-para-transferir-e22212b606d14594bb67c2c4eb5874d5"
            "public_url": null
        }
        "11": {
            "object": "page"
            "id": "ddc05f22-53d3-40c4-abb7-68b2b90503cc"
            "created_time": "2023-09-21T12:31:00.000Z"
            "last_edited_time": "2023-09-21T12:31:00.000Z"
            "created_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "last_edited_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "cover": null
            "icon": null
            "parent": {
                "type": "page_id"
                "page_id": "f33f2c08-6f8a-4716-bdc3-9175ae5fcd20"
            }
            "archived": false
            "in_trash": false
            "properties": {
                "title": {
                    "id": "title"
                    "type": "title"
                    "title": [
                        "0": [object Object] <<Maximum depth reached>>
                    ]
                }
            }
            "url": "https://www.notion.so/Encontrar-fontes-ddc05f2253d340c4abb768b2b90503cc"
            "public_url": null
        }
        "12": {
            "object": "page"
            "id": "32bbf172-4fe0-4a56-8376-89c880729d54"
            "created_time": "2023-09-21T12:19:00.000Z"
            "last_edited_time": "2023-09-21T12:30:00.000Z"
            "created_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "last_edited_by": {
                "object": "user"
                "id": "a5a82a5d-189e-44b3-8684-8a7ea5f6b7d5"
            }
            "cover": null
            "icon": null
            "parent": {
                "type": "page_id"
                "page_id": "f33f2c08-6f8a-4716-bdc3-9175ae5fcd20"
            }
            "archived": false
            "in_trash": false
            "properties": {
                "title": {
                    "id": "title"
                    "type": "title"
                    "title": [
                        "0": [object Object] <<Maximum depth reached>>
                    ]
                }
            }
            "url": "https://www.notion.so/Banco-de-dados-32bbf1724fe04a56837689c880729d54"
            "public_url": null
        }
    ]
    "next_cursor": null
    "has_more": false
    "type": "page_or_database"
    "page_or_database": {}
    "request_id": "c7f7c028-9d9b-4608-b96e-57172c898c06"
}
dvanoni commented 3 months ago

@miriamdong, it looks like Notero doesn't have access to any databases. Can you double-check the integration settings? Feel free to share screenshots of your integration on https://www.notion.com/my-integrations and/or your connection in Notion if you'd like to me see if I can spot anything that looks off.


@Historificando-0707, thanks for sending that response! It looks like Notero has access to several pages, but it doesn't have access to a database. Can you share a screenshot of where you connected the integration in Notion? Maybe I can spot where you need to connect it to a database.