remote server returns invalid header error
- Dominant language
- Go
- Stars
- 24.4k
- Forks
- 873
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 120
Description
Dolt v1.59.18
Start a local server that's running remote server.
```yaml
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
```
```bash
dolt sql-server --config config.yaml
```
Then try to clone this database to another dolt server.
```bash
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 '
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with the shown config.yaml, dolt sql-server command, and dolt_clone('http://localhost:2222/local') call. Trace the remote-server clone request and its authorization handling, then verify that cloning the local database no longer returns the invalid Basic authorization-header error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, sql
- Domain
- authentication, backend, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100