1
我能夠完成身份驗證過程的前兩個步驟。在步驟3,當我嘗試通過交換授權代碼來獲取訪問令牌時,我得到一個html響應,其中說「請求不再有效」。優步Api - 試圖獲得訪問令牌返回HTML響應
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Uber </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="icon" href="https://d1a3f4spazzrp4.cloudfront.net/login/images/favicon.a767a268b86a6ce7d1099bec4a9e37aa.ico" type="image/x-icon" />
<link rel="stylesheet" href="https://d1a3f4spazzrp4.cloudfront.net/login/style-login/style.ca8265c07903e433432af8462ac98f4e.css">
<link href="https://d1a3f4spazzrp4.cloudfront.net/uber-icons/3.8.1/uber-icons.css" rel="stylesheet"/>
<link rel="stylesheet" href="https://d1a3f4spazzrp4.cloudfront.net/uber-fonts/2.0.1/superfine.css"/>
</head>
<body>
<div class="content">
<div class="icon-item text--center">
<a href="https://www.uber.com/">
<i class="icon icon_uber
push--top push-small--bottom
">
</i>
</a>
</div>
<p class="login-error-title text--center">Error</p>
<p class="login-error text--center push--top">
Your request is no longer valid
</p>
</div>
<script src="https://d1a3f4spazzrp4.cloudfront.net/login/scripts/analytics.30328e3569a665795cf94cbbf63985a8.js"></script>
<script type="text/javascript">
Analytics.init({
services: {
tealium: {
account: 'uber',
profile: 'main',
env: 'prod',
geo: ''
}
}
});
</script>
</body>
</html>
我能夠在JSON響應中獲得訪問令牌。然後我做了一個小的代碼重構。重構後,我沒有得到JSON響應。
我嘗試從我的超級配置文件斷開應用程序並重試。但同樣的錯誤。