Giter VIP home page Giter VIP logo

inventory's Issues

Timeout / ReferenceError: fetch is not defined error occurring when running default sample

Hum, still have an issue to run the default sample, did i miss another thing? Context: script running on Mac M1 Ventura OS, thanks

Here the error (occurred after some minutes).

% node fetchTeslaInventory.js 
(node:48334) UnhandledPromiseRejectionWarning: ReferenceError: fetch is not defined
    at fetcher (/Users/julien/Documents/JulienGit/TeslaInventory/fetchTeslaInventory.js:3:35)
    at pRetry.onFailedAttempt (/Users/julien/Documents/JulienGit/TeslaInventory/node_modules/tesla-inventory/src/index.js:48:9)
    at RetryOperation._fn (/Users/julien/Documents/JulienGit/TeslaInventory/node_modules/p-retry/index.js:50:18)
    at Timeout._onTimeout (/Users/julien/Documents/JulienGit/TeslaInventory/node_modules/retry/lib/retry_operation.js:85:10)
    at listOnTimeout (internal/timers.js:557:17)
    at processTimers (internal/timers.js:500:7)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:48334) 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:48334) [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.

Can't be used on us inventory

teslaInventory('us', {
model: '3',
condition: 'new'
}).then(results => console.log(results));

or any other model doesn't return results, even that they are shown in the website

TypeError: teslaInventory(...).then is not a function

Hi,

i'm trying to execute the code snippet provided as example:

const teslaInventory = require('tesla-inventory')

teslaInventory('fr', {
  model: 's',
  condition: 'used'
}).then(results => console.log(results))

and here the result i got:
TypeError: teslaInventory(...).then is not a function
it seems that teslaInventory is not returning a Promise, any clue on this ?

Thanks,

Julien

Error: Cannot find module 'got'

Hello,

Whenever attempting to run, both locally or in runkit, the error "Error: Cannot find module 'got'" occurs.

Thanks!

US Inventory?

Perhaps I am not seeing the option to use US as the inventory. But see as a few other countries are listed, I assume that US id default or is US not available?

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.