How to print debug logs

I’m stuck on Stage ACKs with commands #yd3

I’ve tried setting debug=true in yml file but I couldnt get the scenario. I want some print statements for debugging. can someone please help if i can use print statements here and how to use?

Here are my logs:

remote: [tester::#YD3] [handshake] [master] Sending RDB file...
remote: [tester::#YD3] [handshake] [master] Sent bytes: "$88\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2m\b\xbce\xfa\bused-mem°\xc4\x10\x00\xfa\baof-base\xc0\x00\xff\xf0n;\xfe\xc0\xffZ\xa2"
remote: [tester::#YD3] [handshake] [master] Sent RDB file.
remote: [tester::#YD3] [test] [master] > REPLCONF GETACK *
remote: [tester::#YD3] [test] [master] Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$6\r\nGETACK\r\n$1\r\n*\r\n"
remote: [tester::#YD3] Received: "" (no content received)
remote: [tester::#YD3]            ^ error
remote: [tester::#YD3] Error: Expected start of a new RESP2 value (either +, -, :, $ or *)
remote: [tester::#YD3] Test failed
remote: [tester::#YD3] Terminating program
remote: [tester::#YD3] Program terminated successfully

and what I am assuming is i am not handling the code to read rdb file correctly and its terminating master connection? or in infinite loop reading? can someone PLEASE HELP ME?

Hey @anonLearner, setting debug=true only increase the tester’s logging verbosity. It doesn’t affect the output from your own code.

You can already use print statements for debugging:

If you need help debugging, feel free to upload your code to GitHub and share the link. It will be much easier to debug if I can run it directly.

Hi @andy1li , please find my code RedisServer/app/main.py at master · anonLearner/RedisServer · GitHub.

I am thinking somewhere parsing the rdb file broke my connection can you please help?

remote: ------------------------------------------------------------------------
remote:
remote:
remote:      ___            _          ___              __  _
remote:     / __\ ___    __| |  ___   / __\_ __  __ _  / _|| |_  ___  _ __  ___
remote:    / /   / _ \  / _` | / _ \ / /  | '__|/ _` || |_ | __|/ _ \| '__|/ __|
remote:   / /___| (_) || (_| ||  __// /___| |  | (_| ||  _|| |_|  __/| |   \__
remote:   \____/ \___/  \__,_| \___|\____/|_|   \__,_||_|   \__|\___||_|   |___/
remote:
remote:
remote:    Welcome to CodeCrafters! Your commit was received successfully.
remote:
remote: ------------------------------------------------------------------------
remote:
remote: Our test runners might be experiencing downtime: https://status.codecrafters.io
remote:
remote: Running tests on your code. Logs should appear shortly...
remote:
remote: [compile] Moved ./.codecrafters/run.sh → ./your_program.sh
remote: [compile] Compilation successful.
remote:
remote: Debug = true
remote:
remote: [tester::#YD3] Running tests for Stage #YD3 (Replication - ACKs with commands)
remote: [tester::#YD3] Master is running on port 6379
remote: [tester::#YD3] $ ./your_program.sh --port 6380 --replicaof "localhost 6379"
remote: [your_program] Logs from your program will appear here!
remote: [tester::#YD3] [handshake] [master] Waiting for replica to initiate handshake with "PING" command
remote: [tester::#YD3] [handshake] [master] Received bytes: "*1\r\n$4\r\nPING\r\n"
remote: [tester::#YD3] [handshake] [master] ^[[36mReceived RESP array: ["PING"]
remote: [your_program] [DEBUG] Sending to master: ['PING']
remote: [tester::#YD3] [handshake] [master] Received ["PING"]
remote: [tester::#YD3] [handshake] [master] Sent "PONG"
remote: [tester::#YD3] [handshake] [master] Sent bytes: "+PONG\r\n"
remote: [tester::#YD3] [handshake] [master] Waiting for replica to send "REPLCONF listening-port 6380" command
remote: [your_program] [DEBUG] Received 7 bytes from master
remote: [tester::#YD3] [handshake] [master] Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$14\r\nlistening-port\r\n$4\r\n6380\r\n"
remote: [tester::#YD3] [handshake] [master] Received RESP array: [
remote: [tester::#YD3] [handshake] [master]   "REPLCONF",
remote: [tester::#YD3] [handshake] [master]   "listening-port",
remote: [tester::#YD3] [handshake] [master]   "6380"
remote: [tester::#YD3] [handshake] [master] ]
remote: [tester::#YD3] [handshake] [master] Received [
remote: [tester::#YD3] [handshake] [master]   "REPLCONF",
remote: [tester::#YD3] [handshake] [master]   "listening-port",
remote: [tester::#YD3] [handshake] [master]   "6380"
remote: [tester::#YD3] [handshake] [master] ]
remote: [tester::#YD3] [handshake] [master] Sent "OK"
remote: [tester::#YD3] [handshake] [master] Sent bytes: "+OK\r\n"
remote: [tester::#YD3] [handshake] [master] Waiting for replica to send "REPLCONF capa" command
remote: [tester::#YD3] [handshake] [master] Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$4\r\ncapa\r\n$6\r\npsync2\r\n"
remote: [tester::#YD3] [handshake] [master] Received RESP array: ["REPLCONF", "capa", "psync2"]
remote: [your_program] [DEBUG] Parsed master response: PONG
remote: [your_program] [DEBUG] Sending to master: ['REPLCONF', 'listening-port', '6380']
remote: [your_program] [DEBUG] Received 5 bytes from master
remote: [your_program] [DEBUG] Parsed master response: OK
remote: [your_program] [DEBUG] Sending to master: ['REPLCONF', 'capa', 'psync2']
remote: [tester::#YD3] [handshake] [master] Received ["REPLCONF", "capa", "psync2"]
remote: [tester::#YD3] [handshake] [master] Sent "OK"
remote: [tester::#YD3] [handshake] [master] Sent bytes: "+OK\r\n"
remote: [tester::#YD3] [handshake] [master] Waiting for replica to send "PSYNC" command
remote: [tester::#YD3] [handshake] [master] Received bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n"
remote: [tester::#YD3] [handshake] [master] Received RESP array: ["PSYNC", "?", "-1"]
remote: [your_program] [DEBUG] Received 5 bytes from master
remote: [your_program] [DEBUG] Parsed master response: OK
remote: [your_program] [DEBUG] Sending to master: ['PSYNC', '?', '-1']
remote: [tester::#YD3] [handshake] [master] ^[[92mReceived ["PSYNC", "?", "-1"]
remote: [tester::#YD3] [handshake] [master] Sent "FULLRESYNC 75cd7bc10c49047e0d163660f3b90625b1af31dc 0"
remote: [tester::#YD3] [handshake] [master] Sent bytes: "+FULLRESYNC 75cd7bc10c49047e0d163660f3b90625b1af31dc 0\r\n"
remote: [tester::#YD3] [handshake] [master] Sending RDB file...
remote: [tester::#YD3] [handshake] [master] Sent bytes: "$88\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2m\b\xbce\xfa\bused-mem°\xc4\x10\x00\xfa\baof-base\xc0\x00\xff\xf0n;\xfe\xc0\xffZ\xa2"
remote: [tester::#YD3] [handshake] [master] Sent RDB file.
remote: [tester::#YD3] [test] [master] > REPLCONF GETACK *
remote: [tester::#YD3] [test] [master] Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$6\r\nGETACK\r\n$1\r\n*\r\n"
remote: [tester::#YD3] [test] [master] Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$1\r\n0\r\n"
remote: [tester::#YD3] [test] [master] Received RESP array: ["REPLCONF", "ACK", "0"]
remote: [your_program] [DEBUG] FULLRESYNC line: b'+FULLRESYNC 75cd7bc10c49047e0d163660f3b90625b1af31dc 0\r\n'
remote: [your_program] [DEBUG] RDB header: b'$88\r\n'
remote: [your_program] [DEBUG] RDB file received (88 bytes)
remote: [your_program] [DEBUG] Leftover after RDB: b'*3\r\n$8\r\nREPLCONF\r\n$6\r\nGETACK\r\n$1\r\n*\r\n'
remote: [your_program] [DEBUG] Directly parsed leftover command: ['REPLCONF', 'GETACK', '*']
remote: [your_program] [DEBUG] send_command called with response: ['REPLCONF', 'GETACK', '*'], replica: True
remote: [your_program] [DEBUG] Sending REPLCONF ACK: *3
remote: [your_program] ^[[0m$8
remote: [your_program] REPLCONF
remote: [your_program] $3
remote: [your_program] ACK
remote: [your_program] $1
remote: ^[[33m[your_program] 0
remote: [your_program] [DEBUG] connection to master node is established, start handling client connections
remote: [your_program] [DEBUG] handle_client started. Replica: True
remote: [tester::#YD3] [test] [master] Received ["REPLCONF", "ACK", "0"]
remote: [tester::#YD3] [propagation] [master] > PING
remote: [tester::#YD3] [propagation] [master] Sent bytes: "*1\r\n$4\r\nPING\r\n"
remote: [tester::#YD3] [test] [master] > REPLCONF GETACK *
remote: [tester::#YD3] [test] [master] Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$6\r\nGETACK\r\n$1\r\n*\r\n"
remote: [your_program] [DEBUG] Received 51 bytes from socket
remote: [your_program] [DEBUG] Buffer length: 51
remote: [your_program] [DEBUG] Parsed array command: ['PING']
remote: [your_program] [DEBUG] Updated replica offset: 14
remote: [your_program] [DEBUG] send_command called with response: ['PING'], replica: True
remote: [tester::#YD3] [test] [master] Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$2\r\n51\r\n"
remote: [your_program] [DEBUG] Buffer length: 37
remote: [tester::#YD3] [test] [master] ^[[0mReceived RESP array: ["REPLCONF", "ACK", "51"]
remote: [your_program] [DEBUG] Parsed array command: ['REPLCONF', 'GETACK', '*']
remote: [your_program] [DEBUG] Updated replica offset: 51
remote: [your_program] [DEBUG] send_command called with response: ['REPLCONF', 'GETACK', '*'], replica: True
remote: [your_program] [DEBUG] Sending REPLCONF ACK: *3
remote: [your_program] $8
remote: [your_program] REPLCONF
remote: [your_program] $3
remote: [your_program] ACK
remote: [your_program] $2
remote: [your_program] 51
remote: [tester::#YD3] [test] [master] Received ["REPLCONF", "ACK", "51"]
remote: [tester::#YD3] [propagation] [master] ^[[0m> SET blueberry raspberry
remote: [tester::#YD3] [propagation] [master] Sent bytes: "*3\r\n$3\r\nSET\r\n$9\r\nblueberry\r\n$9\r\nraspberry\r\n"
remote: [tester::#YD3] [propagation] [master] > SET pineapple apple
remote: [tester::#YD3] [propagation] [master] Sent bytes: "*3\r\n$3\r\nSET\r\n$9\r\npineapple\r\n$5\r\napple\r\n"
remote: [tester::#YD3] [test] [master] > REPLCONF GETACK *
remote: [tester::#YD3] [test] [master] Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$6\r\nGETACK\r\n$1\r\n*\r\n"
remote: [your_program] [DEBUG] Received 82 bytes from socket
remote: [your_program] [DEBUG] Buffer length: 82
remote: [your_program] [DEBUG] Parsed array command: ['SET', 'blueberry', 'raspberry']
remote: [your_program] [DEBUG] Updated replica offset: 94
remote: [your_program] [DEBUG] send_command called with response: ['SET', 'blueberry', 'raspberry'], replica: True
remote: [your_program] [DEBUG] Buffer length: 39
remote: [your_program] [DEBUG] Parsed array command: ['SET', 'pineapple', 'apple']
remote: [tester::#YD3] [test] [master] Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$3\r\n170\r\n"
remote: [tester::#YD3] [test] [master] Received RESP array: ["REPLCONF", "ACK", "170"]
remote: ^[[33m[your_program] [DEBUG] Updated replica offset: 133
remote: [your_program] [DEBUG] send_command called with response: ['SET', 'pineapple', 'apple'], replica: True
remote: [your_program] [DEBUG] Received 37 bytes from socket
remote: [your_program] [DEBUG] Buffer length: 37
remote: [your_program] [DEBUG] Parsed array command: ['REPLCONF', 'GETACK', '*']
remote: [your_program] ^[[0m[DEBUG] Updated replica offset: 170
remote: [your_program] [DEBUG] send_command called with response: ['REPLCONF', 'GETACK', '*'], replica: True
remote: [your_program] [DEBUG] Sending REPLCONF ACK: *3
remote: [your_program] $8
remote: [your_program] ^[[0mREPLCONF
remote: [your_program] $3
remote: [your_program] ACK
remote: [your_program] $3
remote: [your_program] 170
remote: ^[[33m[tester::#YD3] [test] [master] Received ["REPLCONF", "ACK", "170"]
remote: [tester::#YD3] Test passed.
remote: [tester::#YD3] Terminating program
remote: [your_program] [DEBUG] Received 0 bytes from socket
remote: [your_program] [DEBUG] No data and buffer empty, closing connection.
remote: [your_program] [DEBUG] Closing client connection.
remote: [tester::#YD3] Program terminated successfully
remote:
remote: [tester::#XV6] Running tests for Stage #XV6 (Replication - ACKs with no commands)
remote: [tester::#XV6] Master is running on port 6379
remote: [tester::#XV6] $ ./your_program.sh --port 6380 --replicaof "localhost 6379"
remote: [your_program] Logs from your program will appear here!
remote: [tester::#XV6] [handshake] [master] Waiting for replica to initiate handshake with "PING" command
remote: [your_program] [DEBUG] Sending to master: ['PING']
remote: [tester::#XV6] [handshake] [master] Received bytes: "*1\r\n$4\r\nPING\r\n"
remote: [tester::#XV6] [handshake] [master] Received RESP array: ["PING"]
remote: [tester::#XV6] [handshake] [master] Received ["PING"]
remote: [tester::#XV6] [handshake] [master] Sent "PONG"
remote: [tester::#XV6] [handshake] [master] Sent bytes: "+PONG\r\n"
remote: [tester::#XV6] [handshake] [master] Waiting for replica to send "REPLCONF listening-port 6380" command^[[0m
remote: [your_program] [DEBUG] Received 7 bytes from master
remote: [your_program] [DEBUG] Parsed master response: PONG
remote: ^[[33m[your_program] [DEBUG] Sending to master: ['REPLCONF', 'listening-port', '6380']
remote: [tester::#XV6] [handshake] [master] ^[[0mReceived bytes: "*3\r\n$8\r\nREPLCONF\r\n$14\r\nlistening-port\r\n$4\r\n6380\r\n"
remote: [tester::#XV6] [handshake] [master] Received RESP array: [
remote: [tester::#XV6] [handshake] [master]   "REPLCONF",
remote: [tester::#XV6] [handshake] [master]   "listening-port",
remote: [tester::#XV6] [handshake] [master]   "6380"
remote: [tester::#XV6] [handshake] [master] ]
remote: [tester::#XV6] [handshake] [master] Received [
remote: [tester::#XV6] [handshake] [master]   "REPLCONF",
remote: [tester::#XV6] [handshake] [master]   "listening-port",
remote: ^[[33m[tester::#XV6] [handshake] [master]   "6380"
remote: [tester::#XV6] [handshake] [master] ]
remote: [tester::#XV6] [handshake] [master] Sent "OK"
remote: [tester::#XV6] [handshake] [master] Sent bytes: "+OK\r\n"^[[0m
remote: [tester::#XV6] [handshake] [master] Waiting for replica to send "REPLCONF capa" command
remote: [your_program] [DEBUG] Received 5 bytes from master
remote: [tester::#XV6] [handshake] [master] Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$4\r\ncapa\r\n$6\r\npsync2\r\n"
remote: [tester::#XV6] [handshake] [master] Received RESP array: ["REPLCONF", "capa", "psync2"]
remote: [your_program] [DEBUG] Parsed master response: OK
remote: [your_program] [DEBUG] Sending to master: ['REPLCONF', 'capa', 'psync2']
remote: [tester::#XV6] [handshake] [master] Received ["REPLCONF", "capa", "psync2"]
remote: ^[[33m[tester::#XV6] [handshake] [master] Sent "OK"
remote: [tester::#XV6] [handshake] [master] Sent bytes: "+OK\r\n"
remote: [tester::#XV6] [handshake] [master] Waiting for replica to send "PSYNC" command
remote: [tester::#XV6] [handshake] [master] Received bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n"
remote: [tester::#XV6] [handshake] [master] Received RESP array: ["PSYNC", "?", "-1"]
remote: [your_program] [DEBUG] Received 5 bytes from master
remote: ^[[33m[your_program] [DEBUG] Parsed master response: OK
remote: [your_program] [DEBUG] Sending to master: ['PSYNC', '?', '-1']
remote: [tester::#XV6] [handshake] [master] Received ["PSYNC", "?", "-1"]
remote: [tester::#XV6] [handshake] [master] ^[[0mSent "FULLRESYNC 75cd7bc10c49047e0d163660f3b90625b1af31dc 0"
remote: [tester::#XV6] [handshake] [master] Sent bytes: "+FULLRESYNC 75cd7bc10c49047e0d163660f3b90625b1af31dc 0\r\n"
remote: [tester::#XV6] [handshake] [master] Sending RDB file...
remote: [tester::#XV6] [handshake] [master] Sent bytes: "$88\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2m\b\xbce\xfa\bused-mem°\xc4\x10\x00\xfa\baof-base\xc0\x00\xff\xf0n;\xfe\xc0\xffZ\xa2"
remote: [tester::#XV6] [handshake] [master] Sent RDB file.
remote: [tester::#XV6] [test] [master] > REPLCONF GETACK *^[[0m
remote: [tester::#XV6] [test] [master] Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$6\r\nGETACK\r\n$1\r\n*\r\n"
remote: [your_program] [DEBUG] FULLRESYNC line: b'+FULLRESYNC 75cd7bc10c49047e0d163660f3b90625b1af31dc 0\r\n'
remote: [tester::#XV6] [test] [master] Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$1\r\n0\r\n"
remote: [tester::#XV6] [test] [master] Received RESP array: ["REPLCONF", "ACK", "0"]
remote: [your_program] [DEBUG] RDB header: b'$88\r\n'
remote: [your_program] [DEBUG] RDB file received (88 bytes)
remote: [your_program] [DEBUG] Leftover after RDB: b'*3\r\n$8\r\nREPLCONF\r\n$6\r\nGETACK\r\n$1\r\n*\r\n'
remote: [your_program] [DEBUG] Directly parsed leftover command: ['REPLCONF', 'GETACK', '*']
remote: [your_program] [DEBUG] send_command called with response: ['REPLCONF', 'GETACK', '*'], replica: True
remote: [your_program] [DEBUG] Sending REPLCONF ACK: *3
remote: [your_program] $8
remote: [your_program] REPLCONF
remote: [your_program] $3
remote: [your_program] ACK
remote: [your_program] $1
remote: [your_program] 0
remote: [tester::#XV6] [test] [master] Received ["REPLCONF", "ACK", "0"]
remote: [tester::#XV6] Test passed.
remote: [tester::#XV6] Terminating program
remote: [your_program] [DEBUG] connection to master node is established, start handling client connections
remote: [your_program] [DEBUG] handle_client started. Replica: True
remote: [tester::#XV6] Program terminated successfully
remote:
remote: [tester::#YG4] Running tests for Stage #YG4 (Replication - Command processing)
remote: [tester::#YG4] Master is running on port 6379
remote: [tester::#YG4] $ ./your_program.sh --port 6380 --replicaof "localhost 6379"
remote: [your_program] Logs from your program will appear here!
remote: [tester::#YG4] [handshake] [master] Waiting for replica to initiate handshake with "PING" command
remote: [tester::#YG4] [handshake] [master] Received bytes: "*1\r\n$4\r\nPING\r\n"
remote: [your_program] [DEBUG] Sending to master: ['PING']
remote: [tester::#YG4] [handshake] [master] Received RESP array: ["PING"]
remote: [tester::#YG4] [handshake] [master] Received ["PING"]
remote: [tester::#YG4] [handshake] [master] Sent "PONG"
remote: [tester::#YG4] [handshake] [master] Sent bytes: "+PONG\r\n"
remote: [tester::#YG4] [handshake] [master] Waiting for replica to send "REPLCONF listening-port 6380" command
remote: [tester::#YG4] [handshake] [master] Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$14\r\nlistening-port\r\n$4\r\n6380\r\n"
remote: [tester::#YG4] [handshake] [master] Received RESP array: [
remote: [tester::#YG4] [handshake] [master]   "REPLCONF",
remote: [tester::#YG4] [handshake] [master]   "listening-port",
remote: [tester::#YG4] [handshake] [master]   "6380"^[[0m
remote: [tester::#YG4] [handshake] [master] ]
remote: [tester::#YG4] [handshake] [master] Received [
remote: ^[[33m[tester::#YG4] [handshake] [master]   "REPLCONF",
remote: [tester::#YG4] [handshake] [master]   "listening-port",
remote: [tester::#YG4] [handshake] [master]   "6380"
remote: [tester::#YG4] [handshake] [master] ]
remote: [tester::#YG4] [handshake] [master] Sent "OK"
remote: [tester::#YG4] [handshake] [master] Sent bytes: "+OK\r\n"
remote: [tester::#YG4] [handshake] [master] Waiting for replica to send "REPLCONF capa" command
remote: [your_program] [DEBUG] Received 7 bytes from master
remote: [your_program] [DEBUG] Parsed master response: PONG
remote: [your_program] [DEBUG] Sending to master: ['REPLCONF', 'listening-port', '6380']
remote: [your_program] [DEBUG] Received 5 bytes from master
remote: [your_program] [DEBUG] Parsed master response: OK
remote: [your_program] [DEBUG] Sending to master: ['REPLCONF', 'capa', 'psync2']
remote: [tester::#YG4] [handshake] [master] Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$4\r\ncapa\r\n$6\r\npsync2\r\n"
remote: [tester::#YG4] [handshake] [master] Received RESP array: ["REPLCONF", "capa", "psync2"]
remote: ^[[33m[tester::#YG4] [handshake] [master] Received ["REPLCONF", "capa", "psync2"]
remote: [tester::#YG4] [handshake] [master] Sent "OK"
remote: [tester::#YG4] [handshake] [master] Sent bytes: "+OK\r\n"
remote: [tester::#YG4] [handshake] [master] Waiting for replica to send "PSYNC" command
remote: [tester::#YG4] [handshake] [master] Received bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n"
remote: [tester::#YG4] [handshake] [master] Received RESP array: ["PSYNC", "?", "-1"]
remote: [your_program] [DEBUG] Received 5 bytes from master
remote: [your_program] [DEBUG] Parsed master response: OK
remote: [your_program] [DEBUG] Sending to master: ['PSYNC', '?', '-1']
remote: [tester::#YG4] [handshake] [master] Received ["PSYNC", "?", "-1"]
remote: [tester::#YG4] [handshake] [master] Sent "FULLRESYNC 75cd7bc10c49047e0d163660f3b90625b1af31dc 0"
remote: [tester::#YG4] [handshake] [master] Sent bytes: "+FULLRESYNC 75cd7bc10c49047e0d163660f3b90625b1af31dc 0\r\n"
remote: [tester::#YG4] [handshake] [master] Sending RDB file...
remote: [tester::#YG4] [handshake] [master] Sent bytes: "$88\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2m\b\xbce\xfa\bused-mem°\xc4\x10\x00\xfa\baof-base\xc0\x00\xff\xf0n;\xfe\xc0\xffZ\xa2"
remote: [tester::#YG4] [handshake] [master] Sent RDB file.
remote: [your_program] [DEBUG] FULLRESYNC line: b'+FULLRESYNC 75cd7bc10c49047e0d163660f3b90625b1af31dc 0\r\n'
remote: [your_program] [DEBUG] RDB header: b'$88\r\n'
remote: [tester::#YG4] dial tcp [::1]:6380: connect: connection refused
remote: [tester::#YG4] Test failed
remote: ^[[33m[tester::#YG4] Terminating program
remote: [your_program] [DEBUG] RDB file received (88 bytes)
remote: [tester::#YG4] Program terminated successfully
remote:
remote: Try our CLI to run tests faster without Git: https://codecrafters.io/cli
remote:
remote: View our article on debugging test failures: https://codecrafters.io/debug
remote:
To https://git.codecrafters.io/2a27afffa69d5efc```

@anonLearner I tried running your code but ran into an error:

Could you make sure your code is in a runnable state first?

Hi Andy, thanks for checking it but i have passed that stage now. I’ve debugged for sometime and I figured it. BTW, error with the code in git remote is because i havent pushed latest code from my laptop. Have a good day :slight_smile:

1 Like