Skip to content

search function is not available #546

Open
@bluexg7

Description

@bluexg7

Description

search function is not available.

Error Details

error - HTTPError: Response code 400 (Bad Request)
at Request. (/Users/guoxin/Workspace/JsProjects/my-blog/node_modules/notion-client/node_modules/got/dist/source/as-promise/index.js:117:42)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'ERR_NON_2XX_3XX_RESPONSE',
timings: {
start: 1694342767231,
socket: 1694342767231,
lookup: 1694342767248,
connect: 1694342767521,
secureConnect: 1694342767799,
upload: 1694342767800,
response: 1694342768142,
end: 1694342768144,
error: undefined,
abort: undefined,
phases: {
wait: 0,
dns: 17,
tcp: 273,
tls: 278,
request: 1,
firstByte: 342,
download: 2,
total: 913
}
},
page: '/api/search-notion'
}

suggestions

  1. Use official api [Recommend, if repo owner has some time😊]
    notion-client which is used in this repo is unofficial, here is official api, https://github.com/makenotion/notion-sdk-js

  2. Keep using private api, but need to do some replacement work
    search method in notion-client is outdated, I have try searching in notion.so, we should use "https://www.notion.so/api/v3/queryCollection?src=change_search" to replace "https://www.notion.so/api/v3/search".

Notion Test Page ID

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions