Git Product home page Git Product logo

airtable-json's People

Contributors

arro avatar phildeschaine0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

airtable-json's Issues

airtable should probably be a peer-dependency

Airtable should possible be a peer dependency instead of a dependency of this project.

Right now, the latest version of airtable is 0.11.1 and this repo is using 0.10.1 as a dependency.

Using a peer dependency instead of a dependency will let each consumer of this project manage their own version of airtable.

Allow alias for populate

Allow specifying a name for the populated record.

{
  local: 'foo_linked_records',
  other: 'Foo Table',
  as: 'foos'
}

Handle rate limits

Airtable has a rate limit of 5 requests/second. If you run into that limit while using this library there doesn't seem to be any work around right now.

Two suggestions which should help with this issue are:

  • max_ids_per_query is set to 40. Airtable lets you request up to 100 items at once so increasing this to 100 would cut the number of requests needed to populate entitles by half.
  • Consider implementing some level of throttling.

TypeError: airtableJson is not a function

Hi, newbie's issue here : I have copy pasted the sample code, but I'm getting the TypeError: airtableJson is not a function error...

node export-airtable-to-json.js
(node:122661) UnhandledPromiseRejectionWarning: TypeError: airtableJson is not a function
    at getStuff (file:///home/.../export-airtable-to-json.js:7:23)
    at file:///home/...export-airtable-to-json.js:15:1
    at ModuleJob.run (internal/modules/esm/module_job.js:146:23)
    at async Loader.import (internal/modules/esm/loader.js:165:24)
    at async Object.loadESM (internal/process/esm_loader.js:68:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:122661) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:122661) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Any help/extra guidance appreciated.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.