我正在尝试将 refresh_token 用于索尼的 lifelog api,但它返回 500 错误。我将请求发送到https://platform.lifelog.sonymobile.com/oauth/2/refresh_token
我的要求是:
POST /oauth/2/refresh_token HTTP/1.1
Host: platform.lifelog.sonymobile.com
Cache-Control: no-cache
Content-Type: application/x-www-form-urlencoded
refresh_token=[MY_REFRESH_TOKEN]&grant_type=refresh_token&client_id=[MY_CLIENT_ID]&client_secret=[MY_CLIENT_SECRET]
回应是:
{
"fault": {
"faultstring": "Execution of ServiceCallout CheckRefreshTokenStatus failed. Reason: ResponseCode 500 is treated as error",
"detail": {
"errorcode": "steps.servicecallout.ExecutionFailed"
}
}
}
否则,我对身份验证或使用 API 没有任何问题,只是这个调用给了我错误。