You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run this code which will query a view on the admin port (4985) (and lazily add the view if it gets certain errors -- but the view should already be added)
It looks like the problem is that when adding a view to Sync Gateway 1.1.1 via the REST api, it will create the view in couchbase server without the channel security view wrap. Later, when trying to run Sync Gateway 1.2 against that view it gives an unexpected response format.
Basically we don't have backwards compatibility for querying pre-1.2 views over the admin API.
tleyden
changed the title
Pass-thru view query is failing
Pass-thru view query is failing via admin api on view created with SG 1.1.1
Jan 20, 2016
@tleyden Interesting - since the RetryLoop returns a custom error, the error isn't being converted to 404 by ErrorAsHTTPStatus. I could fix this for views specifically as part of this change, but I wonder if we actually want to change the RetryLoop handling to return the error from the last failed attempt, instead of a new generic error.
Steps to repro:
Sync Gateway logs error:
I wonder if this is related to #862?
The text was updated successfully, but these errors were encountered: