bimawa / AMQProtocol

AMQProtocol wrapper on libRabbitMQ-C
5 stars 0 forks source link

error "Failed to login on server." #2

Open AlexanderZubkov opened 10 years ago

AlexanderZubkov commented 10 years ago

AMQPConnection _connection = [[AMQPConnection alloc] init]; NSError *error,_error1; [connection connectToHost:server onPort:port error:&error]; [connection loginAsUser:login withPasswort:password onVHost:@"/" error:&error1]; if (error1) { NSLog(@"%@", error1); } 2014-06-30 13:14:11.438 AZApp[62979:60b] Error Domain=AMQPConnection Code=-3 "Failed to login on server." UserInfo=0x99bb0e0 {NSLocalizedDescription=Failed to login on server.} sending: 00000000: 01 00 01 00 00 00 05 00 : 14 00 0A 00 CE ............. 0000000D:

I've checked server, port, login and password. They are OK and working on android device. Why does it shows "Failed to login on server."?

bimawa commented 10 years ago

HI, this version not support GSM and 3G or 4G nets. Only Wi-Fi. MB error related with this?

AlexanderZubkov commented 10 years ago

I've got this error on simulator. Is there any other version that support GSM and can be used your wrapper?

AlexanderZubkov commented 10 years ago

And can be used with your wrapper

bimawa commented 10 years ago

i don't know whats will be wrong with your situation, need test and debug. What about support GSM, i starting developing new version of AMQPProtocol without libRabbitMQ-C (this library based on socket.c lib, and not support modern net connections types) i tested CocoaAsyncSocket its work perfectly, but in my company stopped developing in this thread, so sorry. If i found free time and investors i can continue developing AMQProtocol.

bimawa commented 10 years ago

Whats tell you &error pointer? This nil or not? MB you use https?

AlexanderZubkov commented 10 years ago

Ok, it's a pity.

AlexanderZubkov commented 10 years ago

error = nil error1 = Domain=AMQPConnection Code=-3

What do you mean "use https"? As a host?

AlexanderZubkov commented 10 years ago

the communication is done over SSL

bimawa commented 10 years ago

Hmm so strange.. give me know if you found cause of this bug.