Oauth failed /oauth/token 500 internal error


(Tao) #1

I am trying to follow the OAuth example to get the access token but encounter 500 internal server error:

Request:

POST /oauth/token HTTP/1.1
Host: graph.api.smartthings.com
Cache-Control: no-cache
Content-Type: application/x-www-form-urlencoded

grant_type=authorization_code&code=dr2AFV&client_id=7e81d575-dff1-4b24-a1f7-70fe0a824dd8&client_secret=f6c98a5d-5c72-4f28-8e80-27cc05539b49&redirect_uri=https%3A%2F%2Frequestb.in%2F18dtuqy1

Response:

Oh No! Something Went Wrong!

Error
500: Internal Server Error
URI
/oauth/token
Reference Id
26d8b4b4-e124-42ff-912a-18aa357079f2
Date
Thu Jun 15 21:03:48 UTC 2017

(Tao) #2

Never mind, it went through today.