dolt icon indicating copy to clipboard operation
dolt copied to clipboard

remote server returns invalid header error

Open coffeegoddd opened this issue 3 months ago • 2 comments

Dolt v1.59.18

Start a local server that's running remote server.

log_level: debug 
log_format: text

behavior:
  read_only: false
  autocommit: true
  disable_client_multi_statements: false
  dolt_transaction_commit: false
  event_scheduler: "ON"
  auto_gc_behavior:
    enable: false
    archive_level: 0

listener:
  host: 0.0.0.0 
  port: 4433 
remotesapi:
  port: 2222 
dolt sql-server --config config.yaml

Then try to clone this database to another dolt server.

local/main> call dolt_clone('http://localhost:2222/local');
Error 1105 (HY000): could not access dolt url 'http://localhost:2222/local': rpc error: code = Unauthenticated desc = bad request: authorization header did not start with 'Basic '

coffeegoddd avatar Oct 10 '25 14:10 coffeegoddd

Doing a revert on my first auto-bump #9443, might just merge #9445 though

elianddb avatar Oct 10 '25 17:10 elianddb

This happens if you are using dolt creds in the environment where you are setting this up. When dolt creds are being used a Bearer token is automatically sent to the server during clone, which results in the invalid header error. If the local creds are removed, this works again without error.

coffeegoddd avatar Oct 10 '25 22:10 coffeegoddd