I’m getting this error opening a bucket Fatal error: Uncaught Couchbase\Exception: LCB_EINVAL: Invalid input/arguments in /Users/username/Documents/dev/PHP/index.php:13 Stack trace: #0 /Users/username/Documents/dev/PHP/index.php(13): Couchbase\Cluster->openBucket('development') #1 {main} thrown in /Users/username/Documents/dev/PHP/index.php on line 13
// Establish username and password for bucket-access
$authenticator = new \Couchbase\PasswordAuthenticator();
$authenticator->username('username')->password('password');
$cluster = new CouchbaseCluster("https://serverurl");
// Authenticate, then open bucket
$cluster->authenticate($authenticator);
$bucket = $cluster->openBucket($bucketName);
Could you run it with couchbase.log_level=TRACE and capture the logs? Also could you confirm that your serverurl contains only a hostname? Invalid input/arguments might be related to incorrect options in connection string.
How do I do that?
I tried accessing the logs in /Users/username/Library/Application Support/Couchbase/var/lib/couchbase/logs but there’s no Couchbase folder in Application Support
Yes the serverurl contains only a hostname.