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

An example of proxy HTTP agent? 429 error #303

@massanishi

Description

@massanishi

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions