Re: [rabbitmq-users] iOS RabbitMQ Xcode 9.x issue

253 views
Skip to first unread message

Michael Klishin

unread,
Jul 18, 2018, 8:05:41 AM7/18/18
to rabbitm...@googlegroups.com
Can you post all server log entries and your actual code that sets up a connection factory and connects?
The message is pretty unambiguous.

Virtual hosts can be configured using RMQConnectionConfig [1] or URI [2]. The latter is by far the most common option.


On Wed, Jul 18, 2018 at 10:40 AM, <abhi...@numadic.com> wrote:

I have two apps, one on Android and other iOS, both use RabbitMQ to give users realtime updates.

Android app has no issues, works fine. The iOS app however has stopped receiving updates ever since I upgraded Xcode to version 9. 

If I build the app using an older version of Xcode(App store has stopped accepting such builds), it still works. I have not made any changes to my code.

Here is the log that I see in Xcode console

Will start recovery for connection: <RMQConnection: 0x10a07ba70>
Received connection: <RMQConnection: 0x10a07ba70> disconnectedWithError: Error Domain=GCDAsyncSocketErrorDomain Code=7 "Socket closed by remote peer" UserInfo={NSLocalizedDescription=Socket closed by remote peer}
Starting recovery for connection: <RMQConnection: 0x10a07ba70>
[] nw_connection_copy_connected_path 12 Connection has no connected handler
[] tcp_connection_is_cellular No connected path
Recovered connection: <RMQConnection: 0x10a07ba70>
Received connection: <RMQConnection: 0x10a07ba70> disconnectedWithError: Error Domain=NSPOSIXErrorDomain Code=32 "Broken pipe" UserInfo={NSLocalizedDescription=Broken pipe, NSLocalizedFailureReason=Error in write() function}

On the server side I get the following error

PLAIN login refused: user 'username:password' - invalid credentials

While the same credentials work on Android.

I have also verified the credentials using authenticate_user, they are valid.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages