Jump to content


Photo

use proxy


  • Please log in to reply
1 reply to this topic

#1 Ino

Ino

    Advanced Member

  • Member
  • PipPipPip
  • 54 posts

Posted 17 September 2017 - 05:08 AM

Hello. I need to use a proxy for queries in the node steam-community library but when I do this my program closes


const SteamUser = require("steam-user"),
    SteamCommunity = require("steamcommunity"),
    SteamID = require('steamid'),
    CONFIG = require('./config.js'),
    SteamTotp = require("steam-totp"),
    fs = require('fs'),
    Request = require('request')
let client = new SteamUser();
let community = new SteamCommunity({ request: Request.defaults({ proxy: `${proxy[proxyIdx].ip}` }) });

 

And After login , when i call steamcommunity my program closes with error: 

Invalid protocol : null 

can you help me please ?


Edited by Ino, 17 September 2017 - 06:01 AM.


#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,879 posts

Posted 17 September 2017 - 02:57 PM

Are you providing a protocol, like "http://"?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users