Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Adam FraserAdam FraserReporter
Ben BrooksBen BrooksStory Points
1Components
Sprint
NoneFix versions
Affects versions
Priority
MajorInstabug
Open Instabug
Details
Details
Assignee
Adam Fraser
Adam FraserReporter
Ben Brooks
Ben BrooksStory Points
1
Components
Sprint
None
Fix versions
Affects versions
Priority
Instabug
Open Instabug
PagerDuty
PagerDuty
PagerDuty
Sentry
Sentry
Sentry
Zendesk Support
Zendesk Support
Zendesk Support
Created April 8, 2022 at 12:06 PM
Updated August 31, 2024 at 10:59 AM
Resolved April 29, 2022 at 4:28 PM
On Sync Gateway/3.0.0(541;46803d1),
invoking server:4985/bucketname/_user/ gets the following error
{ "error": "Internal Server Error", "reason":"Internal error: parsing failure | {\"statement\":\"SELECT META(`bucketname`).id FROM `bucketname` USE INDEX(sg_syncDocs_x1) WHERE META(`bucketname`).id LIKE '\\\\\\\\_sync:%' AND (META(`ipc-20002-prod`).id LIKE '\\\\\\\\_sync:user:%' OR META(`ipc-20002-prod`).id LIKE '\\\\\\\\_sync:role:%') ORDER BY META(`bucketname`).id LIMIT 5000 AND META(`bucketname`).id \>= $startkey\",\"client_context_id\":\"9c00aeff-43eb-40e3-a130-4f53c4a79b3b\",\"errors\":[{\"Code\":3000,\"Message\":\"Ambiguous reference to field ipc-20002-prod.\"}]}" }
The query
SELECT META(`bucketname`).id
FROM `bucketname` USE INDEX(sg_syncDocs_x1)
WHERE META(`bucketname`).id LIKE '
_sync:%'
AND (META(`bucketname`).id LIKE '
_sync:user:%'
OR META(`bucketname`).id LIKE '
_sync:role:%')
ORDER BY META(`bucketname`).id
LIMIT 5000
AND META(`bucketname`).id >= $startkey
is malformed (if last "AND" condition is properly moved within the WHERE clause, it works).