intercom-go icon indicating copy to clipboard operation
intercom-go copied to clipboard

Error interface does not provide access to X-RateLimit headers

Open pkpfr opened this issue 3 years ago • 0 comments

Version info

  • intercom-go version: 1.0.0
  • Go version: 1.16.2

Expected behavior

If a request is rejected due to rate limiting, the information returned in the X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset should be available through the error interface.

Actual behavior

If a request is rejected due to rate limiting, it is not possible to determine when to resubmit the request since the error interface does not contain any information regarding the limit reset time and there is no way for the client to access the response headers.

pkpfr avatar Mar 26 '21 11:03 pkpfr