That's because you pointed your app to 127.0.0.1. On the Mac that works
because the server is indeed running on localhost, on the iPad this of
course fails. ;)
On Friday, May 30, 2014 9:02:19 PM UTC-4, Sandra wrote:
>
> Hello Jens, I don't understand what happened but I installed sync gateway
> in another computer instead of my localhost and it ran perfectly.
> Weird!
> BR,
> Sandra
>
> On Friday, May 30, 2014 6:27:42 PM UTC-5, Sandra wrote:
>>
>> Hello Jens, just as a test, I took grocery sync and pointed it to my
>> database and I got the same error on iPad, not on iOS simulator.
>> What could it be?
>> BR,
>> Sandra
>>
>>
>> On Friday, May 30, 2014 2:43:51 PM UTC-5, Sandra wrote:
>>>
>>> Hello Jens,
>>> I updated the code to remove the deprecated api calls, if I run the
>>> application in iOS simulator, the connection to the database works
>>> perfectly, but if I tell xcode to run it in the real iPad, I'm getting this
>>> error:
>>>
>>> *Could not connect to the server. (error=Error Domain=NSURLErrorDomain
>>> Code=-1004 "Could not connect to the server." UserInfo=0x1702e2200
>>> {NSUnderlyingError=0x170242d00 "Could not connect to the server.",
>>> NSErrorFailingURLStringKey=http://127.0.0.1:4984/srestaurant/_local/d0eaf494aaa9a6ba54e5cc4b6ebf0f157bcb2d64
>>>
>>> <http://127.0.0.1:4984/srestaurant/_local/d0eaf494aaa9a6ba54e5cc4b6ebf0f157bcb2d64>,
>>>
>>> NSErrorFailingURLKey=http://127.0.0.1:4984/srestaurant/_local/d0eaf494aaa9a6ba54e5cc4b6ebf0f157bcb2d64
>>>
>>> <http://127.0.0.1:4984/srestaurant/_local/d0eaf494aaa9a6ba54e5cc4b6ebf0f157bcb2d64>,
>>>
>>> NSLocalizedDescription=Could not connect to the server.})*
>>>
>>> *2014-05-30 14:32:27.668 Botellon3[5903:60b] ALERT: Error
>>> while synchronizing DB*
>>>
>>>
>>>
>>> *This is the first time I use this iPad as testing device.*
>>>
>>> *I appreciate your advice, as I have no clue why the result is different
>>> in iOS simulator than in the real device. Anything I need to configure in
>>> the iPad?*
>>>
>>> *Thanks a lot,*
>>>
>>> *Sandra*
>>>
>>>
>>>
>>> On Friday, May 30, 2014 12:34:11 PM UTC-5, Sandra wrote:
>>>>
>>>> Thanks a lot!
>>>>
>>>> On Thursday, May 29, 2014 5:21:39 PM UTC-5, Jens Alfke wrote:
>>>>>
>>>>>
>>>>> On May 29, 2014, at 3:16 PM, Sandra <[email protected]> wrote:
>>>>>
>>>>> I took it from the grocery-sync example but some months ago, shall I
>>>>> download the example again so that I check the changes?
>>>>>
>>>>>
>>>>> Yup, I’ve updated Grocery Sync a couple of times to update deprecated
>>>>> API calls.
>>>>>
>>>>> —Jens
>>>>>
>>>>
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/aece3304-71d1-40f6-8088-e72be67d4607%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.