Issues pulling data from sync gateway, "received invalid doc ID from _changes"

Send a GET request to Sync Gateway with the path /dbname/_changes, authenticated as that user. Something like:

curl --user jens http://sghost:4984/dbname/_changes

This will list all docs accessible to that user.