Hi. I have problem with 'logOn' steam-user with proxies through bun.sh. But this work if i not use proxies.
webCompatibilityMode: true is not fix this problem
Error:
Login...
Error: 875 | return;
876 | }
877 | this.#bodyChunks.push(...chunks), callback();
878 | }
879 |
880 | _final(callback) {
^
TypeError: fetch() URL is invalid
code: "ERR_INVALID_ARG_VALUE"
at _final (node:http:880:16)
at callFinal (node:stream:2763:44)
at prefinish (node:stream:2786:44)
at finishMaybe (node:stream:2793:48)
at node:stream:2726:150
at new TCPConnection (app-folder/node_modules/steam-user/components/connection_protocols/tcp.js:59:3)
at app-folder/node_modules/steam-user/components/09-logon.js:341:23
at processTicksAndRejections (:61:76)
My code:
import SteamUser from 'steam-user';
const client = new SteamUser({
httpProxy: 'http://login:pass@ip:port'
})
client.on('loggedOn', () => {
console.log('Loggined!');
})
client.on('error', (err) => {
console.error('Error:', err);
})
client.logOn({
accountName: 'login',
password: 'password'
})
console.log('Login...');
How i can fix it? Thank for help.