xpeppers / trackerbot

Our serverless time tracking bot
https://www.xpeppers.com
8 stars 5 forks source link

Tracking a long range of dates could cause a "429 too many requests" #34

Closed ilbonte closed 5 years ago

ilbonte commented 5 years ago

Tracking more than a week can cause a "429 too many requests" error on toggl's nginx

ilbonte commented 5 years ago

this promise's rejection should be handled. E.g.:

return Promise.all(promises).then(() => {
        return messages.trackedDateRange(username, dateRange, skippedDates, user.project)
      }).catch(() => {
          return messages.someError()
        })