Discussion:
Alternate way to check ws / wss based sync gateway urls
p***@decurtis.com
2018-09-15 08:29:27 UTC
Permalink
In CouchbaseLite 2.0, we need to specify ws / wss for sync gateway urls for
managing replications. Till the time we do not verify sync gateway urls
using new protocols through an iOS application we are not clear of any
errors that may occur. Is there any way if we can verify the sync gateway
urls using the new protocols in browser to check their working / not
working status.
I want to avoid the long way of updating the url in an iOS application then
running it to verify the urls.
--
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 mobile-couchbase+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/36debacf-58a8-42d4-9370-62e22e1f3f57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Jens Alfke' via Couchbase Mobile
2018-09-17 16:16:46 UTC
Permalink
Is there any way if we can verify the sync gateway urls using the new protocols in browser to check their working / not working status.
For troubleshooting network/server problems, you mean?

The REST API is still there, so you can use the equivalent http: URL for the same database, i.e. http://server:port/db.
If you take the ws: URL and just change the scheme to http: (or https:) you’ll hit the websocket endpoint; I think you’ll get a 400 response since your HTTP request doesn’t have the required WebSocket headers, but that will identify that you’ve reached it.

Or you can use the ‘cblite’ command line tool to run a replication.

—Jens
Privacy Policy<https://www.couchbase.com/privacy-policy> | Update Marketing Preferences<https://info.couchbase.com/unsubscribe-or-manage-preferences>
--
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 mobile-couchbase+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/F4795A21-72CD-46A5-8EFC-BD4B021120B7%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.
Loading...