0

我正在尝试运行 opentok android 测试版,但我不断收到

07-28 19:46:03.703: W/opentok-session(1707): get session info failed
07-28 19:46:03.703: W/opentok-session(1707): com.opentok.webservices.TokenAuthRequest$TokenAuthRequestException: Error in response: Invalid Token: Sentinel missing
07-28 19:46:03.703: W/opentok-session(1707):    at com.opentok.webservices.TokenAuthRequest.issue(TokenAuthRequest.java:99)
07-28 19:46:03.703: W/opentok-session(1707):    at com.opentok.webservices.SessionInfo.<init>(SessionInfo.java:45)
07-28 19:46:03.703: W/opentok-session(1707):    at com.opentok.webservices.SessionInfo.fetch(SessionInfo.java:31)
07-28 19:46:03.703: W/opentok-session(1707):    at com.opentok.impl.SessionImpl.attach(SessionImpl.java:99)
07-28 19:46:03.703: W/opentok-session(1707):    at com.opentok.impl.SessionImpl.access$000(SessionImpl.java:55)
07-28 19:46:03.703: W/opentok-session(1707):    at com.opentok.impl.SessionImpl$1.run(SessionImpl.java:86)
07-28 19:46:03.703: W/opentok-session(1707):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
07-28 19:46:03.703: W/opentok-session(1707):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
07-28 19:46:03.703: W/opentok-session(1707):    at java.lang.Thread.run(Thread.java:841)
07-28 19:46:03.834: E/demo-hello-world(1707): session failed! com.opentok.android.OpentokException: Authorization Failure - Invalid credentials were provided.

我知道这意味着我提供的会话 ID 和令牌是错误的,但我不知道那可能是谁,因为我是从 opentok 仪表板获取的。

编辑这是我使用的会话 ID 1_MX4zNjA3NDkwMn4xMjcuMC4wLjF-TW9uIEp1bCAyOSAwNDoxNjozMiBQRFQgMjAxM34wLjIzMTkwMzMxfg

和我使用的令牌

cGFydG5lcl9pZD0zNjA3NDkwMiZzZGtfdmVyc2lvbj10YnJ1YnktdGJyYi12MC45MS4yMDExLTAyLTE3JnNpZz0wMzY4NzQzYjFiNDgzNDI3NDAzZWU0ZWM0Yzg1OGVlZGI5YjI0ZGQ1OnJvbGU9cHVibGlzaGVyJnNlc3Npb25faWQ9MV9NWDR6TmpBM05Ea3dNbjR4TWpjdU1DNHdMakYtVFc5dUlFcDFiQ0F5T1NBd05Eb3hOam96TWlCUVJGUWdNakF4TTM0d0xqSXpNVGt3TXpNeGZnJmNyZWF0ZV90aW1lPTEzNzUwOTY2NDYmbm9uY2U9MC44MjM1NjI5MDY2MTA3ODcxJmV4cGlyZV90aW1lPTEzNzUxODMwMjUmY29ubmVjdGlvbl9kYXRhPQ

4

1 回答 1

0

有效的令牌将以开头T1==而您显示的令牌则不是。您可以返回仪表板,为该会话创建一个新令牌,将整个字符串粘贴到您的应用程序代码中,然后再试一次吗?

于 2013-07-29T11:48:38.190 回答