**Describe the bug** The code should check that the host name and token are valid (for example, was the secret corrupted)?