Hey @naman! Do you know what kinds of permissions you’ve given your db? I remember ‘find’ being kind of a unique operation because even though it’s technically just a read, it also requires write permission. Perhaps that’s related?
I'm using a server admin user, so permissions should not be an issue. Besides, I've tried using the same user using Fauxton and using a python library, and I was able to run the same find queries without issues.
We took a look at the code, and this seems to be an error the CouchDB node client throws. For the find query, the response needs to have a header called Server that matches this regex /^CouchDB\/([\d]+)/ (source code here). It seems like your server is istio-envoy, do you know if you're able to change the server header to "CouchDB" instead?
I made the change to send back a custom response header, and it seems to have fixed the issue. Thanks!
I think this functionality of the client library shouldn't depend on a response HTTP header. The server version is also exposed at the root / endpoint for CouchDB installations. That should be a more definitive check when establishing resource connection from inside retool.