Sync Gateway: (pseudo)random 401 "Invalid login" with BasicAuth

You should definitely file a bug report on the issue in that latest transcript. I don’t know if it’s related to the first problem. It might be, but it depends on exactly what’s causing that internal server error.