Merge pull request #2415 from omnivore-app/fix/nitter-scraper-timeout

fix: increase twitter-handler timeout to 60 seconds
This commit is contained in:
Jackson Harper 2023-06-22 21:39:58 +08:00 committed by GitHub
commit 64a6dee125
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,7 +133,7 @@ export class NitterHandler extends ContentHandler {
const tweets: Tweet[] = []
const option = {
timeout: 10000, // 10 seconds
timeout: 60000, // 60 seconds
}
const response = await axios.get(url, option)
const document = parseHTML(response.data).document