Found 0 pages in Notion

I have pages in Notion

Screenshot 2024-02-03 at 16.36.15

Set NOTION_API_KEY=“*****” in secrets.toml

Run this code:

vectara:
  corpus_id: 3
  customer_id: 2252938633
  reindex: true

crawling:
  crawler_type: notion
docker logs -f vingest                        
2024-02-03 09:42:33,853 - root - INFO - Starting crawl of type notion...
2024-02-03 09:42:35,503 - httpx - INFO - HTTP Request: POST https://api.notion.com/v1/search "HTTP/1.1 200 OK"
2024-02-03 09:42:35,510 - root - INFO - Found 0 pages in Notion.
2024-02-03 09:42:35,510 - root - INFO - Finished crawl of type notion...

Why zero pages?

And error:

Summarization errors

Status 1680: No query results

Summarization failed as there are no query results.

Hi there,
So with Notion, I think what you need to do is create a “connection” (Verknüpfungen über die API hinzufügen und verwalten – Notion Hilfe-Center) and that is where you get the secret key from (it seems like you have the secret so I assume that was already done). And then you need to ensure the “connection” agent has access to specific areas of Notion (Verknüpfungen über die API hinzufügen und verwalten – Notion Hilfe-Center).
My guess is that something in those permissions may not be setup correctly adn thus the crawler does not see those pages. Can you please try that and let me know if that works?

Yes. Without integration I would not be able to create NOTION_API_KEY

Right. Can you check which notion pages are shared with the connection?
I think you need to do this manually in the notion page (sharing)

1 Like

Yes! It was necessary to add a connection to the table itself