Jump to content
McKay Development

fetch() URL is invalid


Recommended Posts

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: 875 |       return;
876 |     }
877 |     this.#bodyChunks.push(...chunks), callback();
878 |   }
879 | 
880 |   _final(callback) {
TypeError: fetch() URL is invalid

      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', () => {

client.on('error', (err) => {
    console.error('Error:', err);

    accountName: 'login',
    password: 'password'


How i can fix it? Thank for help.

Edited by jenamo8890
Link to comment
Share on other sites

  • jenamo8890 changed the title to fetch() URL is invalid

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...