couchbaselabs / GrocerySync-Android

Couchbase Lite demo app for Android: A simple synced shopping list
136 stars 66 forks source link

Issue with configuring sync-gateway for this app #31

Closed Keshava11 closed 10 years ago

Keshava11 commented 10 years ago

Hi I am trying to configure sync-gateway for checking sync functionality but getting issues.

Created a db named grocery-sync following the instructions in README.md using Sync-Gateway instance running following command sync_gateway -url=walrus: -bucket=grocery-sync

But when I am trying check the database using rest api, it prompts for login where when I enter the couchbase console credential giving auth failed. localhost:4984/grocery-sync/

I never created any credentials other than the couchbase server console.

How will I check for the created db and the documents. Is there any tutorial on how to configure sync-gateway and db along as its not very clear from the docs.

tleyden commented 10 years ago

I updated the instructions here:

https://github.com/couchbaselabs/GrocerySync-Android/blob/master/README.md#configuring-a-remote-sync-gateway-optional

Can you retry with these exact instructions?

tleyden commented 10 years ago

But when I am trying check the database using rest api, it prompts for login where when I enter the couchbase console credential giving auth failed.

Sounds like you just need to make sure "GUEST": {"disabled": false as in the example config

If you follow the updated README you will get that config.

Keshava11 commented 10 years ago

Ok Thanks I got it running following your instructions and yes I can see data syncing from device.