2016-03-16 85 views
0

我剛剛下載Gracenote公司的SDK,併成功構建了樣品在Ubuntu上,但是當我遇到的那些樣本出現錯誤:Gracenote公司SDK:用戶未註冊在線使用

ducpa1 @ 101BacTT:〜/ gnsdk-3.07.7.3701o -20150714 /樣品/ musicid_lookup_album_text $ ./sample'34218515 '3B09794059618E8661874A4F544AE0AF' licfile.txt '在線'

GNSDK產品版本:3.07.7.3701(建2015年7月14日12:37-0700)

信息:沒有存儲的用戶 - 這畝應用程序的第一次運行。

錯誤:gnsdk_manager_locale_load()上線438] 0x90800168 用戶沒有註冊爲在線使用

請注意,我已經創建了一個應用程序上developer.gracenote.com和上述客戶信息應該是正確的。

我還發現爲此問題創建的線程,但未找到答案。

stackoverflow.com/questions/31382774/gracenote-sdk-giving-error-user-not-registered-for-online-use

誰能給我建議,在這種情況下?

+0

我知道了。我的Ubuntu PC必須通過代理服務器連接到互聯網,並且代理阻止了大多數域。這可能會導致身份驗證失敗。在繞過代理之後,我可以免費訪問互聯網,我毫無問題地運行這些樣本。 – Joel

回答

0

看來您已經爲本地創建了GnUser,但後來嘗試使用同一個用戶進行在線。 請刪除'user.txt'文件,然後再試一次,以便創建一個新的在線用戶。從樣本代碼

評論:

/* Creating a GnUser is required before performing any queries to Gracenote services, 
* and such APIs in the SDK require a GnUser to be provided. GnUsers can be created 
* 'Online' which means they are created by the Gracenote backend and fully vetted. 
* Or they can be create 'Local Only' which means they are created locally by the 
* SDK but then can only be used locally by the SDK. 
*/ 

/* If the application cannot go online at time of user-regstration it should 
* create a 'local only' user. If connectivity is available, an Online user should 
* be created. An Online user can do both Local and Online queries. 
*/ 
+0

原來,這是我的代理設置。安,謝謝你的幫助:) – Joel