Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Airtable Document Loader URL character limit #7359

Open
5 tasks done
eduardconstantin opened this issue Dec 12, 2024 · 0 comments
Open
5 tasks done

Airtable Document Loader URL character limit #7359

eduardconstantin opened this issue Dec 12, 2024 · 0 comments
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature

Comments

@eduardconstantin
Copy link
Contributor

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangChain.js documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangChain.js rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code

const loaderView = new AirtableLoader({
  tableId: "YOUR_TABLE_ID",
  baseId: "YOUR_BASE_ID",
  kwargs: { view: "YOUR_VIEW_NAME", maxRecords: 10, filterByFormula: "long formula" },
});
const documents = await loader.load();
console.log("Loaded documents with view:", documents);

Error Message and Stack Trace (if applicable)

No response

Description

Airtable Document Loader uses a GET request and adding a longer formula will break the 16,000 character limit.
To fix this issue we have to make a POST request to /v0/{baseId}/{tableIdOrName}/listRecords while passing the parameters within the body of the request instead of the query parameters.

System Info

platform windows
Node v20.14.0
yarn 1.22.22

@dosubot dosubot bot added the auto:bug Related to a bug, vulnerability, unexpected error with an existing feature label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant