couchbaselabs / couchbaselabs/cbgb

Unable to open bucket via Java 2.0 SDK

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
60
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Hi there
I am trying to interact with CBGB via Java 2.0 SDK. But whether I try

Bucket bucket = cluster.openBucket(mybucketname);
or
Bucket bucket = cluster.openBucket();// Default bucket
I am getting java.lang.IllegalStateException: Could not load bucket configuration: INVALID_ARGUMENTS(400 Bad Request: missing required Host header)
at com.couchbase.client.core.config.loader.HttpLoader$1.call(HttpLoader.java:97)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the bucket-opening calls with the Java 2.0 SDK and inspect the request associated with HttpLoader.java:97, especially how the Host header is supplied. Confirm the server and client agree on the bucket configuration request, then verify that both named-bucket and default-bucket opening no longer fail with the missing Host header error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.