The reason Harry’s parents were murdered by Lord Voldemort was because he was able to find their hiding place after their Secret Keeper Peter Pettigrew betrayed their location and broke the Fidelius Charm.
But I wonder why James Potter chose one of his friends to perform the charm when he could have been his own Secret Keeper?