Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error "Failed to login on server." #2

Open
AlexanderZubkov opened this issue Jun 30, 2014 · 9 comments
Open

error "Failed to login on server." #2

AlexanderZubkov opened this issue Jun 30, 2014 · 9 comments

Comments

@AlexanderZubkov
Copy link

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
Copy link
Owner

bimawa commented Jun 30, 2014

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

@AlexanderZubkov
Copy link
Author

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

@AlexanderZubkov
Copy link
Author

And can be used with your wrapper

@bimawa
Copy link
Owner

bimawa commented Jun 30, 2014

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
Copy link
Owner

bimawa commented Jun 30, 2014

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

@AlexanderZubkov
Copy link
Author

Ok, it's a pity.

@AlexanderZubkov
Copy link
Author

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

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

@AlexanderZubkov
Copy link
Author

the communication is done over SSL

@bimawa
Copy link
Owner

bimawa commented Jul 10, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants