threads-api icon indicating copy to clipboard operation
threads-api copied to clipboard

An example of proxy HTTP agent? 429 error

Open massanishi opened this issue 2 years ago • 1 comments

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);

massanishi avatar Aug 09 '23 16:08 massanishi

Your proxy is ratelimited.

0xF7A4C6 avatar Aug 10 '23 11:08 0xF7A4C6