Hello, our application is having issues with the direct_messages/show endpoint. Our users are sometimes high frequency DMers and we call this endpoint every time they send a new DM (to retrieve the DM just sent).
For the past month, this call would have periods where they would always fail, returning the following exception:
401:Authentication credentials (https://dev.twitter.com/pages/auth) were missing or incorrect. Ensure that you have set valid consumer key/secret, access token/secret, and the system clock is in sync. message - Invalid or expired token. code - 89
For example, a user would be able to DM throughout the day, but sometime mid afternoon the
direct_messages/show endpoint would start to fail with the above exception (but DM’s could still successfully post using this endpoint: direct_messages/new).
The error has appeared sporadically, happening for a period of days, then not appearing for a week for any customer, then appearing again for the past month. Now, however, we have stopped receiving those errors, even though we have not changed our codebase.
We were wondering why users are receiving this error? Even when the user receives this error, they are able to use the same access token to post DM’s with no problem.