I don’t see where you setup authenticator. Does your bucket has password? You should use PasswordAuthenticator for current stable version of the server or ClassicAuthenticator if you are using legacy servers.
My buckets do not have password. Do I have to use an authenticator for buckets without password? The code works just fine without ?detailed_errcodes=1.
It works for me for the previously existing buckets and version 4.5. For any new buckets, yes…I have to use password. I have version 5 locally that I upgraded from 4.5. Any buckets existed in 4.5 works without password.
they are not equivalent, and libcouchbase treats them differently (and always did). Also your logs show invalid query string, which might be because of incorrect query string. So please fix your connection strings.
I DID and tested before replying. I also never said they are equivalent. I wrote that they work regardless of protocol.
All three of them work just fine without query string.
All three of them do not work with query string.
I’m grateful that you are trying to help, but we are getting distracted. As I noted in my previous posts, protocol does not affect this issue. I’ve tested with and without protocol.
I guess my question was not direct enough.
Is “detailed_errcodes” (or any other strings after couchbase address) still supported or is this completely abandoned? If so, can I consider this as another BC or bug?
with the latest version of SDK
does not work: 127.0.0.1:8091?detailed_errcodes=1
My apologies for the incorrect reply above. These two work. I had to refresh a few times after testing 127.0.0.1:8091.
works: http://127.0.0.1:8091?detailed_errcodes=1
works: couchbase://127.0.0.1?detailed_errcodes=1
Regardless of http:// or couchbase://, the older version of SDK worked without protocol.
it looks like the solution is to append the protocol all the time now, which is still breaking change (not sure if that’s from SDK or libcouchbase).
I really don’t have time to go and find what the old SDK was doing, but 2.1.0 SDK used to work just fine without protocol. My point is that this is another breaking change.
Yes, it looks like the current version of the SDK treats the connection string differently.
I was able to fix it by making sure we use couchbase://