GrocerySync in iOS not working

17 views
Skip to first unread message

juan pablo Velasquez

unread,
Dec 27, 2014, 12:52:21 AM12/27/14
to mobile-c...@googlegroups.com
I am a new user in couchbase so sorry if this is a really noob question. 

I downloaded the grocerySync Xcode project and run it on my iPhone. However, the app cant sync the info to the server! Everytime It gives an error that says Error Syncing The request timed out. I cant see where I'm failing

This is what I did:
Downloaded Couchbase Server and installed it in my mac. Downloaded Couchbase Sync Gateway and installed it on the same machine. Started the couchbase server. Then I created the new bucket named grocery-sync and another one named sync_gateway. Then I started the sync gateway with the file that couchbase gives in the grocerySync app. In the appDelegate.m the kServerDbURL is set to "http://192.168.0.10:4984" .

I cant make the app to connect to the server. If i enter with safari in my mac to the url 192.168.0.10:4984 it is working fine. It shows the JSON correctly. However if i enter with the safari from my iPhone it never responds. I'm in the same network too!
I'm not sure why I cant connect to the server.

Im sorry for my bad english
Hope that somebody can help me

Thanks in advance

Jens Alfke

unread,
Dec 28, 2014, 11:55:06 PM12/28/14
to mobile-c...@googlegroups.com

> On Dec 26, 2014, at 9:52 PM, juan pablo Velasquez <jpv...@gmail.com> wrote:
>
> In the appDelegate.m the kServerDbURL is set to "http://192.168.0.10:4984" .

There's no database name in that URL. You need to add a "/" and the database name.

—Jens
Reply all
Reply to author
Forward
0 new messages