TikTok-Live-Connector icon indicating copy to clipboard operation
TikTok-Live-Connector copied to clipboard

I set up the proxy to connect, but an error was reported

Open itxiaoxian opened this issue 1 year ago • 3 comments

Here's how I set it up:

const ProxyAgent = require('proxy-agent');
let tiktokLiveConnection = new WebcastPushConnection('xxxxx', {
    requestOptions: {
        httpsAgent: new ProxyAgent('https://root:U#9iRjLH*[email protected]:34511'),
        timeout: 100000 // 10 seconds
    },
    websocketOptions: {
        agent: new ProxyAgent('https://root:U#9iRjLH*[email protected]:34511'),
        timeout: 100000 // 10 seconds
    }
});

This is the error message:

Failed to connect Error: Failed to retrieve room_id from page source. getaddrinfo ENOTFOUND root at WebcastPushConnection._retrieveRoomId2 (C:\Users\HelloWorld\Desktop\delete\node_modules\tiktok-live-connector\dist\index.js:509:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async WebcastPushConnection.connect (C:\Users\HelloWorld\Desktop\delete\node_modules\tiktok-live-connector\dist\index.js:265:9)

I am looking forward to your reply. Thank you.

itxiaoxian avatar May 06 '23 06:05 itxiaoxian

const { WebcastPushConnection } = require('tiktok-live-connector'); const ProxyAgent = require('proxy-agent');

let tiktokLiveConnection = new WebcastPushConnection('@username', { requestOptions: { httpsAgent: new ProxyAgent('https://username:password@host:port'), timeout: 10000 // 10 seconds }, websocketOptions: { agent: new ProxyAgent('https://username:password@host:port'), timeout: 10000 // 10 seconds } });

What do username and password stand for?

itxiaoxian avatar May 06 '23 06:05 itxiaoxian

dont know if its so smart to show your ip and credentials here lol

Pulse-Git avatar May 06 '23 12:05 Pulse-Git

I purchased the server through vultr, and tiktok can be accessed normally via v2ray set proxy. But I don't know what username and password stand for in your example.Thank you.

itxiaoxian avatar May 08 '23 02:05 itxiaoxian