Coder Social home page Coder Social logo

socks5-client's People

Contributors

bridgear avatar dimatter avatar jufil avatar mattcg avatar medzes avatar midnightlightning avatar timolehto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

socks5-client's Issues

socket hang up Fedora 32

Fedora 32 socket5 proxy emits: (but on Ubuntu/Mac it works well) Node v15.9.0

socket hang up at connResetException (node:internal/errors:642:14) at Socks5ClientSocket.socketOnEnd (node:_http_client:486:23) at Socks5ClientSocket.emit (node:events:390:22) at TLSSocket.<anonymous> (/root/dotalaning/node_modules/socks5-client/lib/Socket.js:146:8) at TLSSocket.emit (node:events:390:22) at endReadableNT (node:internal/streams/readable:1307:12) at processTicksAndRejections (node:internal/process/task_queues:81:21) { code: 'ECONNRESET' } {

what is it?

Error: SOCKS connection failed. Connection refused.
     at Socket.socket.ondata (/home/apps/myapps/node_modules/socks5-http-client/node_modules/socks5-client/lib/socket.js:193:12)
     at TCP.onread (net.js:527:27)

I use tor service. is it because tor service timeout, or something wrong with socket.js? could you update this module and check the probability of bug for latest node?

Does not emit `data` Event

Most other socket consumers listen on the data event instead of the ondata provided by ReadableStream.

ENOENT, chmod socks5-client dependency

me@devserv:/scripts/search$ npm install socks5-http-client
npm http GET https://registry.npmjs.org/socks5-http-client
npm http 304 https://registry.npmjs.org/socks5-http-client
npm http GET https://registry.npmjs.org/socks5-client
npm http 304 https://registry.npmjs.org/socks5-client
npm http GET https://registry.npmjs.org/ipv6
npm http GET https://registry.npmjs.org/network-byte-order
npm http 304 https://registry.npmjs.org/network-byte-order
npm http 304 https://registry.npmjs.org/ipv6
npm http GET https://registry.npmjs.org/sprintf
npm http GET https://registry.npmjs.org/cli
npm http GET https://registry.npmjs.org/cliff
npm http GET https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/cli
npm http 304 https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/sprintf
npm http 304 https://registry.npmjs.org/cliff
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/winston
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/winston
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/stack-trace
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/cycle
npm http GET https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/pkginfo
npm http 304 https://registry.npmjs.org/stack-trace
npm http 304 https://registry.npmjs.org/cycle
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/sigmund
npm ERR! Error: ENOENT, chmod '/scripts/node_modules/socks5-http-client/node_modules/socks5-client/node_modules/ipv6/bin/ipv6ack.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 2.6.32-5-686
npm ERR! command "node" "/usr/local/bin/npm" "install" "socks5-http-client"
npm ERR! cwd /scripts/search
npm ERR! node -v v0.10.3
npm ERR! npm -v 1.3.0
npm ERR! path /scripts/node_modules/socks5-http-client/node_modules/socks5-client/node_modules/ipv6/bin/ipv6ack.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /scripts/search/npm-debug.log
npm ERR! not ok code 0

Looks like a dependency in socks5-client is broken?

Using with request with non standard port causes TypeError

When trying to make a GET request to an url of type https://url.com:8075 via request.

var Agent = require('socks5-https-client/lib/Agent');

request({
  method: 'GET',
  url: "https://url.com:8075",
  agentClass: Agent,
 }

Then this error is thrown Failure with error: TypeError: Invalid port: 8075.

The failure seems to be caused because the port number is passed in as a String, request seems to pass the port number as a string instead of as an integer.

Incompatible with Node 4.2.1

Can't use it as an agent with request using Node 4.2.1
Example also doesnt work.

Proxy is a TOR proxy.

Edit: The issue is concerning socks5-http-client. But the problem seems to lie in this library.

Export Socks5ClientSocket

You should make Socks5ClientSocket accessible in the default export, so people can use this package as a raw socket.

Can't connect to proxy

Error: SOCKS authentication failed. No acceptable authentication methods were offered.
at Socket. ((my project path)\node_modules\socks5-client\lib\Socket.js:178:25)
at Object.onceWrapper (node:events:510:26)
at Socket.emit (node:events:402:35)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at TCP.onStreamRead (node:internal/stream_base_commons:199:23)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.