error with RabbitMQ on iOS -


in ios app i'm using rabbitmq wrapper https://github.com/bimawa/amqprotocol

amqpconnection *connection = [[amqpconnection alloc] init]; nserror *error,*error1,*error2; [connection connecttohost:server onport:port error:&error]; [connection loginasuser:login withpasswort:password onvhost:@"/" error:&error1];  amqpchannel *channel = [connection openchannelerror:&error2]; // error here! 

on last line error "failed open channel":

2014-06-27 11:17:06.094 myapp[40055:60b] tclib>> amqpexception amqp_response_library_exception: failed open channel: argument list long 2014-06-27 11:17:06.107 myapp[40055:60b] tclib>> open channel error: error domain=amqpchannel code=-5 "failed open channel" userinfo=0x9abe330 {nslocalizeddescription=failed open channel} 

server, host, login , password working. i've checked them on android app.

can't find out why fails open channel. can recommend something?

may late answer may it's helpful other.:)

in situation problem had error in login 'vhost' or

[connection loginasuser:login withpasswort:password onvhost:@"/" error:&error1];

line , trying open channel of null connection . problem permission check mechanism in rabbit server.

update:

for example check error after each line pass method this:

if(error!=nil){ nslog(@"%@",error); return; }


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -