Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

An example of proxy HTTP agent? 429 error #303

Open
massanishi opened this issue Aug 9, 2023 · 1 comment
Open

An example of proxy HTTP agent? 429 error #303

massanishi opened this issue Aug 9, 2023 · 1 comment

Comments

@massanishi
Copy link

I'm getting 429 error. I'm trying with proxy agent, but it's not working. Do you have a working example?

This is my current implementation.

import { ThreadsAPI } from 'threads-api';
import { HttpProxyAgent } from 'http-proxy-agent';

const proxyAgent = new HttpProxyAgent('http://2.56.119.93:5074');

const threadsAPI = new ThreadsAPI({
  httpAgent: proxyAgent,
});

const userId = await threadsAPI.getUserIDfromUsername(username);
@0xF7A4C6
Copy link

Your proxy is ratelimited.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants