I can’t authenticate on Twitter. I have read and implemented the guidance here:
https://www.make.com/en/help/apps/marketing/twitter#create-client-credentials-from-your-custom-app
But either I’m doing something wrong or something else is going wrong.
Here are the steps I take:
- Create a Tweet (v2)
- Create a connection - if I don’t go to advanced settings, I get this error:
{“message”:“The request failed due to failure of a previous request.”,“code”:“SC424”,“suberrors”:[{“message”:“Status Code Error: 401”,“name”:“RuntimeError”}],“debug”:[[“undefined:”,“response”,401,{“body”:{“{"errors":[{"code":32,"message":"Could not authenticate you."}]}”:“”},“headers”:{“date”:“Fri, 19 May 2023 08:40:03 GMT”,“perf”:“7626143928”,“pragma”:“no-cache”,“server”:“tsa_f”,“status”:“401 Unauthorized”,“expires”:“Tue, 31 Mar 1981 05:00:00 GMT”,“set-cookie”:[“guest_id=v1%3A168448560382189798; Max-Age=34214400; Expires=Tue, 18 Jun 2024 08:40:03 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None”],“content-type”:“application/json; charset=utf-8”,“cache-control”:“no-cache, no-store, must-revalidate, pre-check=0, post-check=0”,“last-modified”:“Fri, 19 May 2023 08:40:03 GMT”,“x-transaction”:“e07b8640b8ad1eb0”,“content-length”:“64”,“x-frame-options”:“SAMEORIGIN”,“www-authenticate”:“OAuth realm="https://api.twitter.com", api_error_code=32”,“x-transaction-id”:“e07b8640b8ad1eb0”,“x-xss-protection”:“0”,“content-disposition”:“attachment; filename=json.json”,“x-content-type-options”:“nosniff”,“x-twitter-response-tags”:“BouncerCompliant”,“strict-transport-security”:“max-age=631138519”,“x-response-time”:“103”,“x-connection-hash”:“fa49a4a7b283d369356b6361ba2a633dea4b7bca332fea272884de456014a08d”,“connection”:“close”}}]]}
If I do go to advanced settings, and put in the keys from my app, from my Twitter Developer Portal, I get similar errors.
Some questions:
- Which keys from the Portal should I use? The Consumer Keys or the OAuth 2.0 Client ID and Client Secret?
In either case, I get an error though. For example, using the OAuth keys:
{“message”:“The request failed due to failure of a previous request.”,“code”:“SC424”,“suberrors”:[{“message”:“Status Code Error: 401”,“name”:“RuntimeError”}],“debug”:[[“undefined:”,“response”,401,{“body”:{“{"errors":[{"code":32,"message":"Could not authenticate you."}]}”:“”},“headers”:{“date”:“Fri, 19 May 2023 08:43:35 GMT”,“perf”:“7626143928”,“pragma”:“no-cache”,“server”:“tsa_f”,“status”:“401 Unauthorized”,“expires”:“Tue, 31 Mar 1981 05:00:00 GMT”,“set-cookie”:[“guest_id=v1%3A168448581592244161; Max-Age=34214400; Expires=Tue, 18 Jun 2024 08:43:35 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None”],“content-type”:“application/json; charset=utf-8”,“cache-control”:“no-cache, no-store, must-revalidate, pre-check=0, post-check=0”,“last-modified”:“Fri, 19 May 2023 08:43:35 GMT”,“x-transaction”:“309e37c8858cf4d2”,“content-length”:“64”,“x-frame-options”:“SAMEORIGIN”,“www-authenticate”:“OAuth realm="https://api.twitter.com", api_error_code=32”,“x-transaction-id”:“309e37c8858cf4d2”,“x-xss-protection”:“0”,“content-disposition”:“attachment; filename=json.json”,“x-content-type-options”:“nosniff”,“x-twitter-response-tags”:“BouncerCompliant”,“strict-transport-security”:“max-age=631138519”,“x-response-time”:“104”,“x-connection-hash”:“e8a86bb9b56ef65071cd076c0495f6bb34d01589225cf8480754c6f3f4754ef2”,“connection”:“close”}}]]}
Help would be welcome. I can’t see how I haven’t followed the guidance. Thanks