Skip to content

Collection property not specified and default collection is not configured #83

@yajo10

Description

@yajo10

Hey,
I try to use the cblite tool to replicate a database. The database has several collections within the _default scope.

I use the following command to pull the remote database: ./cblite openremote --token "sometoken" --collection _default.collectionname1 wss://example.com:4984/dbname/
With this I get the error:

2025-02-05T19:32:31.004610 Sync ERROR Obj=/cblite_cli/C4RemoteRepl#4/Repl#5/ CorrID=6e1f5d0f Got error response: HTTP 400 'Collection property not specified and default collection is not configured for this database' 
2025-02-05T19:32:31.004876 Sync ERROR Obj=/cblite_cli/C4RemoteRepl#4/Repl#5/ CorrID=6e1f5d0f Stopping due to fatal error: WebSocket error 400, "Collection property not specified and default collection is not configured for this database" 
2025-02-05T19:32:31.026586 Sync ERROR Obj=/cblite_cli/C4RemoteRepl#4/Repl#5/Puller#10/ Coll=0 Got error response: HTTP 400 'Collection property not specified and default collection is not configured for this database' 
2025-02-05T19:32:31.026736 Sync ERROR Obj=/cblite_cli/C4RemoteRepl#4/Repl#5/ CorrID=6e1f5d0f Stopping due to fatal error: WebSocket error 400, "Collection property not specified and default collection is not configured for this database" 
2025-02-05T19:32:31.050952 Sync ERROR Obj=/cblite_cli/C4RemoteRepl#4/Repl#5/ CorrID=6e1f5d0f Got LiteCore error: WebSocket error 4002, "Unrecognized collection" 
Error replicating: Collection property not specified and default collection is not configured for this database (/400)

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions