Skip to content

Commit 5dc9c54

Browse files
authored
Disable retry
1 parent 82b1218 commit 5dc9c54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/metascraper-media-provider/src/get-media/twitter-info.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const getGuestToken = async url => {
2828
const { body } = await got.post(
2929
'https://api.twitter.com/1.1/guest/activate.json',
3030
{
31+
retry: false,
3132
headers: { Authorization: TWITTER_BEARER_TOKEN, Referer: url },
3233
json: true
3334
}
@@ -40,6 +41,7 @@ const getTwitterInfo = ({ getToken }) => async url => {
4041
const apiUrl = `https://api.twitter.com/2/timeline/conversation/${tweetId}.json?tweet_mode=extended`
4142
const guestToken = await getToken(url)
4243
const { body } = await got(apiUrl, {
44+
retry: false,
4345
json: true,
4446
headers: {
4547
authorization: TWITTER_BEARER_TOKEN,

0 commit comments

Comments
 (0)