in login!': undefined method
split' for nil:NilClass (NoMethodError)
#523
Replies: 3 comments
-
I am running into this as well with just the first 3 lines of the provided code above. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, as described in https://tesla-api.timdorr.com/api-basics/authentication, the method of authentication you're using is deprecated. You can try to emulate the browser using Puppeteer for authentication, as detailed in #501 (comment). |
Beta Was this translation helpful? Give feedback.
-
Hey @timdorr, I got the same issue. You already updated this ruby lib with the new SSO authentication way. tesla-api/lib/tesla_api/client.rb Lines 61 to 146 in 5e23c3b Based on your update, from my understanding, the step to authenticate is as follows: tesla_api = TeslaApi::Client.new(email: "tesla account email", client_id: nil, client_secret: nil) We do not need to set client_id and client_secret since it is deprecated, and we have the default tesla_api.login!('tesla account email') Why do I get this error?
Do we need to update the ruby lib? Or let me know the latest way to use this Ruby lib to authenticate. Thank you! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, Im a bit new to Ruby and trying to use this API. Im getting this error:
in
login!': undefined method
split' for nil:NilClass (NoMethodError)My code is just the example code in the README:
Any guidance would be helpful. Thank you
Beta Was this translation helpful? Give feedback.
All reactions