Skip to content

Instantly share code, notes, and snippets.

@toddfreese
Created August 29, 2014 22:06
Show Gist options
  • Select an option

  • Save toddfreese/04e3befb6b540423b1b2 to your computer and use it in GitHub Desktop.

Select an option

Save toddfreese/04e3befb6b540423b1b2 to your computer and use it in GitHub Desktop.
CBL Logging for auth failure using NSURLCredential.
17:05:00.042| Logging mode 2 enabled in domains: {Sync, SyncVerbose}
17:05:00.043| ### Couchbase Lite 1.0 (unofficial) ###
17:05:00.065| Sync: CBLReplication[from http://approvalstest.filmworkers.com:4984/shotbotdb/]: offline, progress = 0 / 0, err: (null)
17:05:00.066‖ Sync: CBL_Puller[http://approvalstest.filmworkers.com:4984/shotbotdb/] STARTING ...
2014-08-29 17:05:00.065 ShotBOT[52013:90b] pull offline, Error=(null)
2014-08-29 17:05:00.066 ShotBOT[52013:90b] push stopped, Error=(null)
17:05:00.067| Sync: CBLReplication[to http://approvalstest.filmworkers.com:4984/shotbotdb/]: offline, progress = 0 / 0, err: (null)
17:05:00.067‖ SyncVerbose: CBL_Puller[http://approvalstest.filmworkers.com:4984/shotbotdb/]: Found credential, using CBLBasicAuthorizer[toddfreese/****]
2014-08-29 17:05:00.066 ShotBOT[52013:90b] pull offline, Error=(null)
2014-08-29 17:05:00.067 ShotBOT[52013:90b] push offline, Error=(null)
17:05:00.069‖ Sync: CBL_Puller[http://approvalstest.filmworkers.com:4984/shotbotdb/]: Reachability state = <approvalstest.filmworkers.com>:unreachable (00), suspended=0
17:05:00.069‖ Sync: CBL_Pusher[http://approvalstest.filmworkers.com:4984/shotbotdb/] STARTING ...
17:05:00.070‖ SyncVerbose: CBL_Pusher[http://approvalstest.filmworkers.com:4984/shotbotdb/]: Found credential, using CBLBasicAuthorizer[toddfreese/****]
17:05:00.071‖ Sync: CBL_Pusher[http://approvalstest.filmworkers.com:4984/shotbotdb/]: Reachability state = <approvalstest.filmworkers.com>:reachable (20002), suspended=0
17:05:00.071‖ Sync: CBL_Pusher[http://approvalstest.filmworkers.com:4984/shotbotdb/]: Going online
17:05:00.072‖ Sync: CBL_Pusher[http://approvalstest.filmworkers.com:4984/shotbotdb/] Progress: set active = 1
17:05:00.072‖ SyncVerbose: CBL_Pusher[http://approvalstest.filmworkers.com:4984/shotbotdb/]: postProgressChanged (0/0, active=1 (batch=0, net=1), online=1)
17:05:00.072‖ SyncVerbose: CBL_Pusher[http://approvalstest.filmworkers.com:4984/shotbotdb/]: GET _local/5be9b6a266eb823f661189e464d132cef475dc49
17:05:00.076‖ SyncVerbose: CBL_Pusher[http://approvalstest.filmworkers.com:4984/shotbotdb/]: postProgressChanged (0/0, active=1 (batch=0, net=1), online=1)
17:05:00.085‖ Sync: CBL_Puller[http://approvalstest.filmworkers.com:4984/shotbotdb/]: Reachability state = <approvalstest.filmworkers.com>:reachable (20002), suspended=0
17:05:00.085‖ Sync: CBL_Puller[http://approvalstest.filmworkers.com:4984/shotbotdb/]: Going online
17:05:00.086‖ Sync: CBL_Puller[http://approvalstest.filmworkers.com:4984/shotbotdb/] Progress: set active = 1
17:05:00.086‖ SyncVerbose: CBL_Puller[http://approvalstest.filmworkers.com:4984/shotbotdb/]: postProgressChanged (0/0, active=1 (batch=0, net=1), online=1)
17:05:00.086‖ SyncVerbose: CBL_Puller[http://approvalstest.filmworkers.com:4984/shotbotdb/]: GET _local/239c8fdb3f31932d12a4960eaaee7fb31012287a
17:05:00.087‖ SyncVerbose: CBL_Puller[http://approvalstest.filmworkers.com:4984/shotbotdb/]: postProgressChanged (0/0, active=1 (batch=0, net=1), online=1)
17:05:00.094‖ Sync: CBL_Pusher[http://approvalstest.filmworkers.com:4984/shotbotdb/]: Replicating from lastSequence=395
17:05:00.094‖ SyncVerbose: CBL_Pusher[http://approvalstest.filmworkers.com:4984/shotbotdb/]: Received 0 revs
17:05:00.094‖ Sync: CBL_Pusher[http://approvalstest.filmworkers.com:4984/shotbotdb/] Progress: set active = 0
17:05:00.094‖ SyncVerbose: CBL_Pusher[http://approvalstest.filmworkers.com:4984/shotbotdb/]: postProgressChanged (0/0, active=0 (batch=0, net=0), online=1)
17:05:00.094‖ Sync: CBL_Puller[http://approvalstest.filmworkers.com:4984/shotbotdb/]: Replicating from lastSequence=1251
17:05:00.094‖ SyncVerbose: CBL_Puller[http://approvalstest.filmworkers.com:4984/shotbotdb/] starting ChangeTracker: mode=3, since=1251
17:05:00.095‖ SyncVerbose: CBLWebSocketChangeTracker[0x1264d890 shotbotdb]: GET //approvalstest.filmworkers.com:4984/shotbotdb/_changes?feed=websocket
17:05:00.115‖ <WebSocketHTTPLogic: 0x12652f90>: HTTP auth failed; sent Authorization: Basic YmFkdXNlcm5hbWU6YmFkcGFzc3dvcmQ= ; got WWW-Authenticate: Basic realm="Couchbase Sync Gateway"
17:05:00.116‖ CBLWebSocketChangeTracker[0x1264d890 shotbotdb]: Connection error #1, retrying in 2.0 sec: The operation couldn’t be completed. HTTP/1.1 401 Unauthorized
17:05:00.508| Sync: CBLReplication[to http://approvalstest.filmworkers.com:4984/shotbotdb/]: active, progress = 0 / 0, err: (null)
2014-08-29 17:05:00.507 ShotBOT[52013:90b] pull offline, Error=(null)
2014-08-29 17:05:00.508 ShotBOT[52013:90b] push active, Error=(null)
17:05:01.020| Sync: CBLReplication[from http://approvalstest.filmworkers.com:4984/shotbotdb/]: active, progress = 0 / 0, err: (null)
2014-08-29 17:05:01.020 ShotBOT[52013:90b] pull active, Error=(null)
2014-08-29 17:05:01.020 ShotBOT[52013:90b] push active, Error=(null)
17:05:01.021| Sync: CBLReplication[to http://approvalstest.filmworkers.com:4984/shotbotdb/]: idle, progress = 0 / 0, err: (null)
2014-08-29 17:05:01.021 ShotBOT[52013:90b] pull active, Error=(null)
2014-08-29 17:05:01.021 ShotBOT[52013:90b] push idle, Error=(null)
17:05:02.117‖ SyncVerbose: CBLWebSocketChangeTracker[0x1264d890 shotbotdb]: GET //approvalstest.filmworkers.com:4984/shotbotdb/_changes?feed=websocket
17:05:02.124‖ <WebSocketHTTPLogic: 0xc973760>: HTTP auth failed; sent Authorization: Basic YmFkdXNlcm5hbWU6YmFkcGFzc3dvcmQ= ; got WWW-Authenticate: Basic realm="Couchbase Sync Gateway"
17:05:02.124‖ CBLWebSocketChangeTracker[0x1264d890 shotbotdb]: Connection error #2, retrying in 4.0 sec: The operation couldn’t be completed. HTTP/1.1 401 Unauthorized
17:05:06.125‖ SyncVerbose: CBLWebSocketChangeTracker[0x1264d890 shotbotdb]: GET //approvalstest.filmworkers.com:4984/shotbotdb/_changes?feed=websocket
17:05:06.131‖ <WebSocketHTTPLogic: 0xc9b50f0>: HTTP auth failed; sent Authorization: Basic YmFkdXNlcm5hbWU6YmFkcGFzc3dvcmQ= ; got WWW-Authenticate: Basic realm="Couchbase Sync Gateway"
17:05:06.131‖ CBLWebSocketChangeTracker[0x1264d890 shotbotdb]: Connection error #3, retrying in 8.0 sec: The operation couldn’t be completed. HTTP/1.1 401 Unauthorized
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment