1

Using Java HttpUrlConnection to connect to Good Data apis:

Application while running from localhost always runs perfect but on production the TT token most of the times gets expired in less than a second

2014-12-18 15:43:19.507 - Got SST token cookie=GDCAuthSST=; path=/gdc/account; expires=Sat, 03-Jan-2015 20:43:19 GMT; secure; HttpOnly

2014-12-18 15:43:19.618 - Exchanged it for TT token cookie=GDCAuthTT=fjMPorWZnO22FDhdb9qiapkzhmKKxwf2QANQaU-QXH6xKrUEulgsMdd2TZNmX71JdGfE972qko0Oo51KBMRpn_ofD6F6PhqNAp8GvrOvWGNcXGFnmdfq-Sb-_Eh_md_Vjbb_MhUqpKM93CR_Lbb_m6C1xN8RDYeyJzHxKfXjvJR7InYiOjE0MTg5MzU5OTksInUiOiI2NzU5MzkiLCJ>sIjoiMCIsImsiOiJjMTBmZDUwZi01NzM0LTQzMTgtODE5ZS0yZmE5NjA3MTk2NzIifQ; Path=/gdc; Secure; HttpOnly

2014-12-18 15:43:19.619 - call to server=https://secure.gooddata.com/gdc/md//obj/<1111111>

failed with 401 error and empty TT token

<html><head><title>401 Authorization Required</title></head><body>
<p>This server could not verify that you are authorized to access the document 
requested. Either you supplied the wrong credentials (e.g., bad password), 
or your  browser doesn't understand how to supply the credentials required.
Please see <a href="http://docs.gooddata.apiary.io/#login">
Authenticating to the GoodData API</a> for details.</p></body></html>

cookie=GDCAuthTT=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/gdc; Secure

4

1 回答 1

0

cookie=GDCAuthTT=""; 到期时间=周四,1970 年 1 月 1 日 00:00:10 GMT;路径=/gdc; 安全的

它看起来像一个无效的令牌,通常是一个根本不会存储的已删除令牌。

获取 SST 令牌时可能会出现问题,您能告诉我您是如何获取该令牌的吗?

于 2014-12-19T10:00:49.843 回答