node-twitter-api-v2 icon indicating copy to clipboard operation
node-twitter-api-v2 copied to clipboard

Request failed Error

Open bigansh opened this issue 3 years ago • 1 comments

So I was migrating my DB, and I needed to get the data of the individual tweet. It worked for a while & then I received an error that doesn't say anything about it. Here is the screenshot of the error.

image

This is the code.

const tweet = await twitterClient.v2.singleTweet(
					bookmark.twitter_status_id
				)

				bookmark.post_heading = tweet?.data?.text
				bookmark.post_data = tweet?.data?.text

bigansh avatar Nov 15 '22 13:11 bigansh

A request error is mostly a network problem. You can get the inner Node.js error my accessing error.requestError.stack (error being the catched error)

alkihis avatar Dec 22 '22 15:12 alkihis