Hi,

Our client tried to reply a status which has mentioned but the API returns the error: 401 - Unauthorized. We noticed that the API documentation describes the error 401 - Unauthorized as undefined circumstances. So we need help to understand the error. The evidences of request and response of this error are bellow:

REQUEST

POST 1.1/statuses/update.json?status=TESTE&in_reply_to_status_id=1535357034773741571

Host: api_dot_twitter_dot_com

Content-Length: 0

Authorization: OAuth oauth_nonce=“#####”, oauth_timestamp=“1655991275”, oauth_version=“1.0”, oauth_signature_method=“HMAC-SHA1”, oauth_consumer_key=“######”, oauth_token=“########”, oauth_signature=“#######”’

RESPONSE

HTTP/1.1 401 Unauthorized

date: Thu, 23 Jun 2022 13:34:35 GMT

server: tsa_b

set-cookie: guest_id_marketing=#####; Max-Age=63072000; Expires=Sat, 22 Jun 2024 13:34:35 GMT; Path=/; Domain=_dot_twitter.com; Secure; SameSite=None, guest_id_ads=#####; Max-Age=63072000; Expires=Sat, 22 Jun 2024 13:34:35 GMT; Path=/; Domain=_dot_twitter.com; Secure; SameSite=None, personalization_id=“#####”; Max-Age=63072000; Expires=Sat, 22 Jun 2024 13:34:35 GMT; Path=/; Domain=_dot_twitter.com; Secure; SameSite=None, guest_id=####; Max-Age=63072000; Expires=Sat, 22 Jun 2024 13:34:35 GMT; Path=/; Domain=_dot_twitter.com; Secure; SameSite=None

content-type: application/json; charset=utf-8

cache-control: no-cache, no-store, max-age=0

content-length: 62

strict-transport-security: max-age=631138519

x-response-time: 6

x-connection-hash: #####

{“errors”:[{“code”:89,“message”:“Invalid or expired token.”}]}

Regards,
Camila

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.