kaan Posted June 9 Report Posted June 9 Hello, some methods give an error when you send a request directly to steam or sometimes the server ips is banned,. I am calling from TradeOfferManager.getUserInventoryContents In depend i look source it's calling from "node-steamcommunity". can we just give this function or proxy globally, like steamUser? Example; const client = new SteamUser( { machineIdType: SteamUser.EMachineIDType.PersistentRandom, httpProxy: `http://${ proxy }`, autoRelogin: false, picsCacheAll: true, webCompatibilityMode: true, protocol: SteamUser.EConnectionProtocol.WebSocket } ); Maybe while creating SteamCommunity or TradeOfferManager const community = new SteamCommunity( {} ); community.setCookies( cookies ); const manager = new TradeOfferManager( { steam: steamUser, community: community, domain: "127.0.0.1", language: 'en', useAccessToken: true, pollInterval: Math.floor( Math.random() * 1000 ) + 1000 } ); manager.setCookies( cookies ); Quote
Dr. McKay Posted June 9 Report Posted June 9 You need to setup an instance of the request module using request.defaults() with your proxy config, then pass that request instance to the SteamCommunity constructor, and finally pass that SteamCommunity instance to the TradeOfferManager constructor. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.