langchain
ae73b9d8 - community[patch]: Fix NotionDBLoader 400 Error by conditionally adding filter parameter (#19075)

Commit
2 years ago
community[patch]: Fix NotionDBLoader 400 Error by conditionally adding filter parameter (#19075) - **Description:** This change fixes a bug where attempts to load data from Notion using the NotionDBLoader resulted in a 400 Bad Request error. The issue was traced to the unconditional addition of an empty 'filter' object in the request payload, which Notion's API does not accept. The modification ensures that the 'filter' object is only included in the payload when it is explicitly provided and not empty, thus preventing the 400 error from occurring. - **Issue:** Fixes [#18009](https://github.com/langchain-ai/langchain/issues/18009) - **Dependencies:** None - **Twitter handle:** @gunnzolder Co-authored-by: Anton Parkhomenko <anton@merge.rocks>
Author
Parents
Loading