SESSION SERVICE ERROR

0 votes

hello,

This is strange behavior SessionTest sample project in Unity. 
 
//=====================================SESSION_SERVICE========================================
 
if (GUI.Button(new Rect(680, 200, 200, 30), "SetAttribute"))
        {
            sessionService = sp.BuildSessionService(); // Initializing Session Service.
            sessionService.SetAttribute(cons.sessionId, cons.attributeName, cons.attributeValue, callBack);
        }
 
//======================================SESSION_SERVICE=======================================
 
        if (GUI.Button(new Rect(890, 200, 200, 30), "GetAttribute"))
        {
            sessionService = sp.BuildSessionService(); // Initializing Session Service.
            sessionService.GetAttribute(cons.sessionId, cons.attributeName, callBack);
        }
 
Once this code to work properly, the second 
 
ArgumentException: An element with the same key already exists in the dictionary. 
System.Collections.Generic.Dictionary`2 [System.String, System.String] .Add (System.String key, System.String value) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:404)
(System.String sessionId, System.String attributeName, App42CallBack callBack) com.shephertz.app42.paas.sdk.csharp.session.SessionService.GetAttribute 
SessionTest.OnGUI () (at Assets / App42SampleScripts / SessionTest.cs: 88) 
 
This error appears in the console or in Unity. 
 
Is it normal? 
 
When you exit Unity and once again it works normal.

 

asked Sep 15, 2014 in App42 Cloud API-BaaS by jeongdoojin8 (10 points)

1 Answer

0 votes

Hello,

It looks like there is an issue on sdk side..

We have fixed this issue and it is available to download from here

Let me know if it helps.

 

Thanks,

Himanshu Sharma 

 

answered Sep 15, 2014 by hs00105 (2,005 points)
Hello Himanshu Sharma,

The normal operation.

Please test before the SDK distribution.

And consumes a lot of time because of these issues.

Thank you.
Hi, I'm having the same error with the 3.2.1 version of the SDK, is there any solutions?
Hello,

This issue is already resolved from our side, please download the latest binary from the below link and let me know if you face any issue.
https://github.com/shephertz/App42_Unity3D_SDK

Thanks,
Himanshu Sharma
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...