Welcome to Tesla Motors Club
Discuss Tesla's Model S, Model 3, Model X, Model Y, Cybertruck, Roadster and More.
Register

Search results

  1. J

    Model S REST API

    post some of your code minus any sensitive information (tokens) I was able to get my javascript client to work by adding a User-Agent to the request header. When your code makes a request, headers can optionally be sent as extra data (for example, when you use a browser and visit a website, the...
  2. J

    Model S REST API

    If you're using JavaScript, which uses double-precision floating-point format, Number.MAX_SAFE_INTEGER is 9007199254740991, so if your vehicle's ID exceeds that, your ID might become misrepresented, and has to defer to the String format as a fallback, i.e. id_s will always work. For example, in...
  3. J

    Error in Tesla API

    In my case, I simply had to add 'user-agent' header to my node client with an arbitrary value. Strangely, postman, curl, ruby, etc. all worked, but there's something weird about node. Anyway, no time to figure it out, here's some copy pasta that you can try var http = require("https"); var...