This is what I get on my console when I am not able to login to Zone and after this I get onLoginError interup.
Code: Select all
2011-12-16 15:22:52.147 MyApp[10277:f803] [SFS - INFO]Handling Message: Login: { Message id: 1 }
{Dump: }
(short) ec: 6
(utf_string_array) ep: [(
userName,
MyApp
)]
This is what normal Login response looks like:
Code: Select all
2011-12-16 15:22:37.610 MyApp[10254:f803] [SFS - INFO]Handling Message: Login: { Message id: 1 }
{Dump: }
(short) rs: 1
(sfs_array) rl:
(utf_string) zn: MyApp
(utf_string) un: userName
(int) id: 38
(short) pi: 0
And when the error happens, server side I get this error:
Code: Select all
com.smartfoxserver.v2.exceptions.SFSExtensionException: Extension Request refused. Sender is not a User: { Id: 65, Type: DEFAULT, Logged: No, IP: 174.67.224.184:36951 }
Zone Login request:
Code: Select all
[smartFox send:[LoginRequest requestWithUserName:userName password:@"" zoneName:@"MyApp" params:nil]];
I only send zone login request after I get successful onConnection event. Any ideas why this might be happening?
P.S: We have got SFS2X with RC3 and custom login (without DB as for now).