Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

215 error: Bad Authentication data #52

Open
learkonas opened this issue Dec 12, 2022 · 0 comments
Open

215 error: Bad Authentication data #52

learkonas opened this issue Dec 12, 2022 · 0 comments

Comments

@learkonas
Copy link

Receiving 215 'Bad Authentication data'. Is this up to date with Twitter's AAA Api ref?

Expected behavior

Expecting Autohook to generate the webhook

Actual behavior

This does not happen. I get the below in my terminal instead.

Getting webhooks…
Removing webhooks…
Registering https://e82a-2a00-23c5-fd87-6601-6006-e738-4301-de4f.ngrok.io/webhook as a new webhook…
Cannot create webhook: AuthenticationError: Bad Authentication data. (HTTP status: 400, Twitter code: 215)
    at tryError (C:\Users\leona\AppData\Roaming\npm\node_modules\twitter-autohook\errors\index.js:53:12)
    at Autohook.setWebhook (C:\Users\leona\AppData\Roaming\npm\node_modules\twitter-autohook\index.js:208:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Autohook.start (C:\Users\leona\AppData\Roaming\npm\node_modules\twitter-autohook\index.js:277:7)
    at async C:\Users\leona\AppData\Roaming\npm\node_modules\twitter-autohook\cli.js:60:5 {
  code: 215
}
Error: Bad Authentication data. (HTTP status: 400, Twitter code: 215)

Steps to reproduce the behavior

Install via npm: npm i -g twitter-autohook
Create .env.twitter file in home dir with correct details. (I know the details are correct because I used them in other calls to twtr API.) I didn't include a ngrok link
Run autohook -rs

Brief thoughts

It looks to me like this may not send enough authentication data, per the Premium API Ref. Are oauth nonce, signature, and timestamp not needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant