You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hi bro, thanks for your document: https://tesla-api.timdorr.com/api-basics/authentication, but I meet some problem:
code_verifier
: qmoYcmeAQmEiAQJ60CHbBraurbrXj8IZMhjZQwIbmOG4XXrGqbzgOeC3A39zY9IFSllqklzR9pdSYrGqp6excRcode_challenge
: M2NhYTlhYjkxOWNjZWNhZjJlYTBlMzY3ZTU4ODA0ODc4NWUyYzllYmMzYTc5N2E2ZmYxNjNlMGU5MmZlZTcwYQ==when I execute step 3 with
curl
command, the request and response is bellow:curl -i -X POST
-H "Content-Type:application/json"
-H "Cookie:tesla-auth.sid=s%3AN4ZphogQkmofg9QYH_jKrrD_U64fu81-.2QEK%2FVYJ8ISyBNY4guQ1tsVvCpJC%2BYzTvSmXzUIxruQ; Path=/; Expires=Sat, 30 Oct 2021 14:19:49 GMT; HttpOnly; Secure; SameSite=Lax strict-transport-security: max-age=15768000 ; includeSubDomains"
-d
'{
"grant_type": "authorization_code",
"client_id": "ownerapi",
"code": "e0ecb6b37318437654f056bf6acd56710f7443aa9c9972c1ab71b4405a37",
"code_verifier": "qmoYcmeAQmEiAQJ60CHbBraurbrXj8IZMhjZQwIbmOG4XXrGqbzgOeC3A39zY9IFSllqklzR9pdSYrGqp6excR",
"redirect_uri": "https://auth.tesla.com/void/callback"
}'
'https://auth.tesla.com/oauth2/v3/token'
HTTP/2 403
content-type: application/json
content-length: 173
x-dns-prefetch-control: off
x-frame-options: DENY
strict-transport-security: max-age=15552000; includeSubDomains
x-download-options: noopen
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-request-id: 5accc034-c990-4f60-831f-0c5c416294c0
x-correlation-id: 5accc034-c990-4f60-831f-0c5c416294c0
cache-control: no-store
access-control-allow-origin: *
x-response-time: 3.569ms
x-edgeconnect-midmile-rtt: 2
x-edgeconnect-origin-mex-latency: 75
date: Wed, 27 Oct 2021 15:54:09 GMT
permissions-policy: interest-cohort=()
set-cookie: _abck=0DA1C430E34A50E802DAFB479949D93B~-1
YAAQmYIsF+3qrbl8AQAAfnJ1wgYVa/3/DFq6PFYRXwRiYcvX1LPxjhmKSEDSiOSoNAiWlsmPkykkCe10A5hGqB66sap9WpO63Wwm3RSUHINFdoduRKH/3MCwrZL/M+/PR5AYu8tWvoHC63dSmBLJ3Pl067MSVUq8wz2XFAcH0Lx8qYLvhUh6nHoMCmqQHe2p4q7ia6BWJ8nODKcYxOqZri3qkCkhoVhG5j/5txloynIvzIEOUiOMaxnu3xCVhH5e64F+8r2FY6i0jMfoJp7oUTBgqDqBix8kNpfnIok3ZrBGyw1d7pZgIwyZPlYuNry9vkUwiWfy8qmHuUCymOhqX2BfluyrpFGnUD+gLVpv7pdIR+FVfckFWA==-1~-1~-1; Domain=.tesla.com; Path=/; Expires=Thu, 27 Oct 2022 15:54:09 GMT; Max-Age=31536000; Secureset-cookie: bm_sz=78EE6B1B0E4DD4AD91EA341A8ACC3795~YAAQmYIsF+7qrbl8AQAAfnJ1wg2MAazoaPNnOAXlE0NmCYdDcbc58o7eG9rU/1eWY+OIgmJ8BUk2SphHO01bSOeUCaCDJSa0vfqQQyAPAMFpAsr/SFhsCCitjxtiSm3wQkqzl0XtQUI+pPZWAKTrmVST2oddbMvb2GiLPR55xnuX7rmJoHuE/wnO+VUrIfLVU3osc7y0aJCkUnJr1/nPLCzwvJgeg6LzkuW+lWTph9KCuGgjP0iPTqSsZIChahFmcZejZHsmSth632+wwrf5J9aF7hOt72wua/WRnAO8s8sBgQ==
34222594277304; Domain=.tesla.com; Path=/; Expires=Wed, 27 Oct 2021 19:54:09 GMT; Max-Age=14400{"error":"invalid_grant","error_description":"Internal server error","error_uri":"https://auth.tesla.com/error/reference/5accc034-c990-4f60-831f-0c5c416294c0-1635350049370"}%
Beta Was this translation helpful? Give feedback.
All reactions