kbravh / tweet-to-markdown

A command line tool to convert Tweets to Markdown.
MIT License
159 stars 9 forks source link

Forbidden error when downloading a tweet and having a valid bearer token #23

Closed AJCM-git closed 1 year ago

AJCM-git commented 1 year ago

Hi, im getting this error when trying to pull a tweet

2023-05-07XXXXXXZ: Forbidden; [object Object]
Error: Request failed with status code 403
    at createError (/usr/lib/node_modules/tweet-to-markdown/dist/main.js:7854:15)
    at settle (/usr/lib/node_modules/tweet-to-markdown/dist/main.js:7870:12)
    at IncomingMessage.handleStreamEnd (/usr/lib/node_modules/tweet-to-markdown/dist/main.js:10226:11)
    at IncomingMessage.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

the bearer token should be valid as i just made it and if it was invalid the error would be Unauthorized, not Forbidden

AJCM-git commented 1 year ago

I think its because you cant pull tweets with the free plan, you need the basic one, in which case the documentation needs updating to mention this image

kbravh commented 1 year ago

Hi @AJCM-git, thanks for catching that. I've updated the documentation.