Error opening bucket

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();
      $cluster = new CouchbaseCluster("https://serverurl");

      // Authenticate, then open bucket
      $bucket = $cluster->openBucket($bucketName);

@youngestdj, what extension version do you use?

@avsej 2.6.0

extension version 	2.6.0
libcouchbase runtime version 	2.10.3 (git: b387722192f0bc49b0a846859610493e2f8129cd)
libcouchbase headers version 	2.10.3 (git: b387722192f0bc49b0a846859610493e2f8129cd)
igbinary transcoder 	disabled (install pecl/igbinary and rebuild pecl/couchbase)
zlib compressor 	enabled 

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.