A 401 HTTP response from the Pusher REST API means one of the following:
- The credentials are incorrect
- The authentication signature is incorrect
The second reason can be caused by the time on the machine creating the signature being incorrect. This is because the signature is created with a timestamp. To remedy ensure the time is correct. See What does the Timestamp expired response from REST API mean when triggering an event?