robhruska / CalendarToSlack

Grabs calendar data from Outlook and sets Slack presence to Away when events occur.
7 stars 1 forks source link

Custom message sometimes doesn't get removed from the last name #9

Open robhruska opened 8 years ago

robhruska commented 8 years ago

There have been a few times where the logs say we're updating the user's last name to remove the custom message, but the message doesn't actually get removed.

A good first step for investigation would be adding in some logs with the Slack response to see if we're getting rate limited or there's some other error message coming back in the 200 response.

robhruska commented 8 years ago

Definitely Slack's ratelimiting. I've temporarily added some 1.5 second sleeps after every single API call (ugh), though I'm actually not sure if that'll be enough. Looking into options here.