Replies: 6 comments 3 replies
-
A bit of a long shot but could use human solving service: It appears the new API piece is: _csrf: rPIvYAwz-131lLqcOXxNPeZmUP-BZzyiGB7k |
Beta Was this translation helpful? Give feedback.
-
I'm also encountering this problem. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately that won’t work given that I autogenerated these tokens every 45 days through GitHub Actions. :(
…On Jun 1, 2021, 2:59 PM -0500, themonomers , wrote:
You can write the CAPTCHA image to your Google Drive, view it there, prompt the user for the text in Python, and then continue on with the flow.
Github
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
If anyone is still running into this problem and using python they can see
how we implemented captcha check and resolve it.
fkhera/powerwallCloud@ba4012a
It uses 2catpcha, to farm off the image, which is saved as .svg , converted
.png.
Call 2captcha to have them solve.
Wait on their resolution.
Use the resolution : captcha code, and embed it into Tesla request.
And continue the rest of the flow as prescribed. From what I can see the
code is working as expected.
On Tue, Jun 1, 2021 at 1:15 PM Carlos Nunez ***@***.***>
wrote:
… Unfortunately that won’t work given that I autogenerated these tokens
every 45 days through GitHub Actions. :(
On Jun 1, 2021, 2:59 PM -0500, themonomers , wrote:
> You can write the CAPTCHA image to your Google Drive, view it there,
prompt the user for the text in Python, and then continue on with the flow.
> Github
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://urldefense.com/v3/__https://github.com/timdorr/tesla-api/discussions/393*discussioncomment-812807__;Iw!!IKRxdwAv5BmarQ!MXejOWu8maEuun5FPgpBBdwRNvrLmxL4_BWBohAFq60Qsvyq-89Up74bYjstww$>,
or unsubscribe
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABU4JYBI5DYVPPT5WSTJSSTTQU5RBANCNFSM45X775TA__;!!IKRxdwAv5BmarQ!MXejOWu8maEuun5FPgpBBdwRNvrLmxL4_BWBohAFq60Qsvyq-89Up74-9KHLKw$>
.
|
Beta Was this translation helpful? Give feedback.
-
@fkhera I can see in your code you obtain the In my response, the Location header does not have a key I continue with my |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Has anyone had issues with the Tesla API, our raspberry PI which just accesses the token , oauth API seems to have gone down.
Code used for REST API:
https://auth.tesla.com/oauth2/v3/authorize?code_challenge=Q9MaFZwd3Y0GQx1E42nGDn4NtnAhpgqh6l-BwdYe6Tg&client_id=ownerapi&state=tesla_exporter&redirect_uri=https%3A%2F%2Fauth.tesla.com%2Fvoid%2Fcallback&response_type=code&code_challenge_method=S256&scope=openid+email+offline_access
IT appears Tesla is using some type "code catchya" , any ideas how to get past that?
Following the link above shows a captchya.
Coming to non MFA flow:
Traceback (most recent call last):
File "/home/pi/powerwallTimeOfUse.py", line 242, in authenticate
code_url = resp.headers["location"]
File "/usr/lib/python2.7/dist-packages/requests/structures.py", line 52, in getitem
return self._store[key.lower()][1]
KeyError: 'location'
Traceback (most recent call last):
File "/home/pi/powerwallTimeOfUse.py", line 67, in main
tpw.productlist()
Beta Was this translation helpful? Give feedback.
All reactions