Occasional 401 responses from CBL rest api

I’ve getting 401 responses from time to time when querying via the couchbase lite rest api. For the moment I’ve only noticed it in the IOS simulator but I’ll monitor other deployments. The error seems to go away almost immediately. When it happens and I try and hit the same url from my browser there’s no error. I get the error querying both documents and views.