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 error #7523

Closed
5 tasks done
eduardconstantin opened this issue Jan 14, 2025 · 1 comment · Fixed by #7532
Closed
5 tasks done

Airtable Document loader error #7523

eduardconstantin opened this issue Jan 14, 2025 · 1 comment · Fixed by #7532
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature

Comments

@eduardconstantin
Copy link
Contributor

eduardconstantin commented Jan 14, 2025

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

In my last PR I forgot to update the airtable API url
The POST request should hit this url: /v0/{baseId}/{tableIdOrName}/listRecords

System Info

platform windows
Node v20.14.0
yarn 1.22.22

Copy link

dosubot bot commented Jan 14, 2025

The correct API endpoint format for the AirtableLoader in LangChain.js is:

https://api.airtable.com/v0/{baseId}/{tableId}

This is constructed in the fetchRecords method using the BASE_URL, baseId, and tableId [1]. If your POST request is not hitting this endpoint, you might need to ensure that the baseId and tableId are correctly specified in your code. If you intended to use a different endpoint, such as /v0/{baseId}/{tableIdOrName}/listRecords, you may need to modify the AirtableLoader implementation to accommodate this change.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot dosubot bot added the auto:bug Related to a bug, vulnerability, unexpected error with an existing feature label Jan 14, 2025
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

Successfully merging a pull request may close this issue.

1 participant