nextjs-notion-starter-kit
nextjs-notion-starter-kit copied to clipboard
search function is not available
Description
search function is not available.
Error Details
error - HTTPError: Response code 400 (Bad Request)
at Request.
suggestions
-
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
-
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
@bluexg7 I fixed the problem temporarily, and wrote an article, if you are interested, here's the link. https://danni.cool/2023/10/17/Fixed%20the%20broken%20search%20in%20nextjs-notion-starter-kit/
Hello @danni-cool, it looks like the notion-client6.15.6.patch file is broken. Any chance you could shoot over another copy to [email protected]? Thanks a bunch in advance!
@tuan404 Thx for informing me, I tested the notion link, and it's working, I‘ve uploaded a copy on Google Drive: https://drive.google.com/file/d/17AQFkbqJVH53DGIKYGZBHGTH1w6Rgpzu/view
@danni-cool worked for me, thank you for the fix
@danni-cool Thanks for your fix
Thank you for the fix @danni-cool
I still have this issue on the latest fork of this repo.
@tuan404 Thx for informing me, I tested the notion link, and it's working, I‘ve uploaded a copy on Google Drive: https://drive.google.com/file/d/17AQFkbqJVH53DGIKYGZBHGTH1w6Rgpzu/view
worked for me, thank you. Add a pull/request for others?
@neeyongliang it was fixed in the dependency of [email protected], but the version in this repo was fixed to 6.15.6。I tried to upgrade it alone but there came other new problems. this is a minimal way to solve this problem.
@bluexg7 I fixed the problem temporarily, and wrote an article, if you are interested, here's the link. https://danni.cool/2023/10/17/Fixed%20the%20broken%20search%20in%20nextjs-notion-starter-kit/
Worked for me. Thanks!