Sometimes I see this in getpeerinfo:
"synced_headers": -1, "synced_blocks": -1,
sometimes it's only synced blocks at -1.
What does that mean?
It means you either have no headers, no block, or both known to be (*) in common with this peer.
From the help
:
$ bitcoin-cli help getpeerinfo
....
"synced_headers" : n, (numeric) The last header we have in common with this peer
"synced_blocks" : n, (numeric) The last block we have in common with this peer
(*) As Pieter cleared in the comment it doesn't mean you aren't on the same chain, just that the peer didn't announce any block to you yet.