Skip to content

Getting 429 - Too many requests when trying to launch the project #13

Description

@tymakat

Prerequisites: launch the project for the first time with npm start
Remarks: Using free X API plan (it might be related)

When I launch the project I get the following issue:

Starting process to generate draft...
Fetching sources...
Scraping 21 sources...
Error: Failed to fetch tweets for OpenAIDevs: Too Many Requests
    at C:\Users\tymak\Desktop\Hustle apps\trendFinder\src\services\scrapeSources.ts:69:19
    at Generator.next (<anonymous>)
    at fulfilled (C:\Users\tymak\Desktop\Hustle apps\trendFinder\src\services\scrapeSources.ts:5:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

And even though the requirement of X API token is stated as optional, when I revert to default value of

X_API_BEARER_TOKEN=your_twitter_api_bearer_token_here

It still tries to fetch the tweets and produces 401 Unauthorized error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions