This could happen due to overcooked/thick sugar syrup. Once hard, the mixture cannot be rescued. It wont set, however you can consume the mixture as it is, it will still taste good.