aleixrodriala / wa-tunnel Goto Github PK
View Code? Open in Web Editor NEWTunneling Internet traffic over Whatsapp
License: MIT License
Tunneling Internet traffic over Whatsapp
License: MIT License
Hey man, good work i was thinking if you could please implement a way to route trough more than one acc to avoid the ban and maybe even increase the speed, this ban seems to be only from whatsapp end, it's very easy to get another whatsapp account to use in parallel and it would certainly reduce a lot the ban risk, as well as increasing the bandwidth, while one stuff is transfering you don't need to wait to send another packet too wich should decrease the lag substantially. I would like more than 2 accounts prefferably.
It seems dangerous to leave this running on open internet.
Any plan on supporting some kind of authentication?
when i try run the server side
abdo@abdo:~/wa-tunnel$ sudo node server.js 192.168.0.1 3128 2129*******
[sudo] password for abdo:
/home/abdo/wa-tunnel/node_modules/on-exit-leak-free/index.js:11
const registry = new FinalizationRegistry(clear)
^
ReferenceError: FinalizationRegistry is not defined
at Object.<anonymous> (/home/abdo/wa-tunnel/node_modules/on-exit-leak-free/index.js:11:18)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/home/abdo/wa-tunnel/node_modules/pino/lib/tools.js:8:16)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
(node:93625) UnhandledPromiseRejectionWarning: ReferenceError: btoa is not defined
at encode (/Users/me/workspace/wa-tunnel/node_modules/uint8-to-base64/cjs/index.js:8:3)
at sendData (/Users/me/workspace/wa-tunnel/src/wasocket.js:37:26)
at Socket.<anonymous> (/Users/me/workspace/wa-tunnel/src/client.js:61:11)
at Socket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:293:12)
at readableAddChunk (internal/streams/readable.js:267:9)
at Socket.Readable.push (internal/streams/readable.js:206:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:93625) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:93625) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
node: v14.21.3
npm: 6.14.18
/home/ubuntu/wa-tunnel/node_modules/on-exit-leak-free/index.js:11
const registry = new FinalizationRegistry(clear)
^
ReferenceError: FinalizationRegistry is not defined
at Object. (/home/ubuntu/wa-tunnel/node_modules/on-exit-leak-free/index.js:11:18)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/home/ubuntu/wa-tunnel/node_modules/pino/lib/tools.js:8:16)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
I find this project concept very interesting and it sparked an idea of using dialup over WhatsApp calls.
It's very interesting project, it should have alternative to make it work without whatsapp like using nats or another messaging
computer need to access website through phone ip while computer ip banned
Why am I getting this error when I run the server.js script?
[16:05:53.215] INFO (1271): connection update {"connection":"connecting","receivedPendingNotifications":false}
[16:05:55.923] ERROR (1271): connection closed
[16:05:55.925] INFO (1271): connection update {"connection":"close","lastDisconnect":{"error":{"data":{"reason":"401","location":"cln"},"isBoom":true,"isServer":false,"output":{"statusCode":401,"payload":{"statusCode":401,"error":"Unauthorized","message":"Connection Failure"},"headers":{}}},"date":"2022-12-08T16:05:55.922Z"}}
We can make compression optional using some sort of configuration like config.json
good ol' require("zlib")
can do
I run this manually. Run curl and get error:
[alex@hard wa-tunnel]$ curl -v -x localhost:8080 https://httpbin.org/ip
* Trying 127.0.0.1:8080...
* connect to 127.0.0.1 port 8080 failed: В соединении отказано
* Trying [::1]:8080...
* Connected to localhost (::1) port 8080 (#0)
* allocate connect buffer
* Establish HTTP proxy tunnel to httpbin.org:443
> CONNECT httpbin.org:443 HTTP/1.1
> Host: httpbin.org:443
> User-Agent: curl/7.87.0
> Proxy-Connection: Keep-Alive
>
* Proxy CONNECT aborted
* Closing connection 0
curl: (56) Proxy CONNECT aborted
And wa-tunnel client crash:
[alex@hard wa-tunnel]$ npm run client 8080 123
> [email protected] client
> node src/client.js 8080 905411980390
[01:01:14.313] INFO (21171): connection update {"connection":"connecting","receivedPendingNotifications":false}
[01:01:14.323] INFO (21171): TCP Server is running on port 8080.
[01:01:15.841] INFO (21171): connection update {"qr":"2@8bc9AhH5lYMUjji85deLNi0hUUnEE+5PzlU91kmSvN8KE/uPfpKw8zDrL+Ads0kGkcRP7/sggz6faw==,dkRFmHvVrVNF0iJlDE18002zKymHyJKH2flXUd3qd3U=,SR7P34i3i2o3tVgbSbSqvhHlG/hjensFgv+1csUowAI=,Rc0rYC3rIB6aHw4/NCM4ooRJQmKwYEOx4UQKVM6PCSU="}
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █▀▀▀▄▀ ▀▄█▄▄▄▀▄█ ▄▄ ▄▀███ █▄▀ ▀██ ▄▄▄▄▄ █
█ █ █ █▀█▀▄▄ █ ▀ ▄▀▄█▄█▄█▀▄▀▀ █▄▀▀▀▄▄▄▄█▀▄▀█ █ █ █
█ █▄▄▄█ █▀▀██▀▀▀███ ▄█ ▄ ▄▄▄ ▄ █▄█▀▄ ▄█ ▀ ███ █▄▄▄█ █
█▄▄▄▄▄▄▄█▄▀▄█▄█ ▀ █ █▄█ █ █▄█ █ █ ▀▄▀▄▀▄▀ █▄▀ █▄▄▄▄▄▄▄█
█ ▄▄▄ █▄▄ █▄▄▄▄▀▄ ▄▄█▀▀▄ ▄ ▄▀ █▄█ ▄▄█▀▀▄ ▀▄▄█ ▀ █ ▀█
█ ▄ ▀ ▄▀ █▀ █▄▄ ██ ▀▄ ▀▀ ▄ █▄▀▀▀ ▄ █ ▄ ▄▄▀▀ ▄ █▀▀█
█▄ █▄▄▄▄▄▀█▀▀█ ▀█▄▄▄▄▄██▄ ▀ █▀▄▀▄██▄▀▄▄▄▀█ ▀▀▄ ▄ ▄█▄▄██
█▀█ ▄▄▀▄ █ █▄▀█▀ ▀▄▀▄█▀█▀▀▄█▀▄▀███████ ▄ ▄▀█▄▀ ▀ ▄▄▀██
█ ██ █▄██▀ ▄▀█▀█ ▀███ ▄▀██ ▀ ▀▄▄▀ ▄█▀█▀ ▀█▄▄ ▄ █
██▀▄ ▄ ▄ █▀█▄▄▀▄▀█▄▀▀▄ ▀ ▄▄▀█▀▀ █▄▄▄ ▀▀▀▀▀▄▄ ▀██▀██
█▄▄▄▀▀▄▄██ ▄▀▄▄█▄█▄ ▀█▀███▄▄▀▀ ▀▀▀███▄ ▄▀▀▀ ▄▄█▄▄ ▄ ▄▄█
█▀▀█▀█ ▄▀██ █ ▄ ▀▄▀ ▄▄▄▀ ▄▄▀▄██▀ ▄▄ █▄██▄▄▄▀▀▀▄▀ █▀██
█▄ █▄ ▄▄▄ █ ██▄▄▄▀ █▀█▄ ▄▄▄ ▀██▄█ ▄ ███▀ █ ▄▄▄ ███ █
█████ █▄█ ██▄▀█ ▄ ▄ ▄ ▀▀ █▄█ █ ▄ ▄▀▀██ █▀ ▄ █▄█ ▄ ██
█▀▄▄█ ▄▄▄ ▄█ ▄▄██▄▄ ▀█▀▀█▄▄▄▄▄▀▀▄▀█▄ ▄▀███▀▀▄ ▄▄ ▀█
██▄█ █▀▄ █ █▀▀█ ▄ ▀▄██▀ █ █▄▀ ██▀ ▄ █ ▄▀▀▀▀▀▀▀▄▄ █▀▀█
██▀█▄▀▄▄▀ ██▄▄▀█▀█▀▄▀█▀█▀▀▀▀ ▀ ▀▄▀█▄▄ ▄▄▀ ▀▄ ██▀█▄▀██
█▀ ▀ █▄▄▀ ▀█ ▄▀ ▀█ ▄██▄▀█ ▄▀▄██▀██▄███ ▄ ▀▀▄▀ ▄ █▀▀█
█▀▄ ▄▀▄█ █▄▀▀▄█▀▄▀▄ █▀███▀▀ █ ▄██▄▄▄▀▄█▀ ▀█▀▄▄ █ ▀█
█▀ ▀ ▄█▄ ▄▀█ ▄ █ ▀█▄█ ▀█▄▀▄██▄ ▄█ ▄▀ ▀▀▀▀▄▄▀▀▄▀█▀▀█
█▀▄▄ █▄ ▀██ █▄▄▄▀█ ██▀ █▄▀▀█ ▀▄█▀▄█▄ █▄█ █▄▄▀▄▀▀█▄▀█
█▄ ▀▄▄▄▄▄ ▄ ▄ ▀ █ ▄█▀▄████▀▄▀▀▄▄▀ ████▀ ▀▄▀ ██▄██
████▄██▄█ ▄█▀▄▄▄▀▄▀▄ ▄█▀█ ▄▄▄ █▀▀███ ▄ █▀▀▀▀▀ ▄▄▄ ▄ ▄ █
█ ▄▄▄▄▄ █▄ █ █▀█ █▄█▀▄ ▄ █▄█ ▄▀▄▄ ▀█ █▄ █ ▄▀ █▄█ ██ ██
█ █ █ █ ▀▄█▄██▀█▄▀ █▄▀▀▄ ▄ ▀▄▀▄█▄▄ ▄██▀▀█ ▄▄▄▄▄▄█
█ █▄▄▄█ █ ▀ ▄ █ ▀██▀▀█▀▀▄█▀▄ ▀ ▀ ▀ ▄ ▀▀█ ▄█ █ ▄▀▄█
█▄▄▄▄▄▄▄█▄██▄▄███▄█▄▄███▄▄█▄████████▄▄█▄██▄█▄██▄▄▄▄████
[01:01:27.257] INFO (21171): connection update {"isNewLogin":true}
[01:01:27.530] INFO (21171): connection update {"connection":"close","lastDisconnect":{"error":{"data":{"tag":"stream:error","attrs":{"code":"515"}},"isBoom":true,"isServer":true,"output":{"statusCode":515,"payload":{"statusCode":515,"error":"Unknown","message":"Stream Errored (restart required)"},"headers":{}}},"date":"2023-01-07T22:01:27.516Z"}}
[01:01:27.532] INFO (21171): connection update {"connection":"connecting","receivedPendingNotifications":false}
[01:01:28.325] INFO (21171): connection update {"qr":"2@KXkoUBfKN3z9c4clTwzG0svFB0XbQUyw4xyiueFJQu6tnZdGf8plAgr0xJHsz19rbN92BnQLV6uKxw==,AS5NzZFUGv43wcCBO9HydByUCttYkrbT1DIHMaQxUgQ=,SWfOt7X33/ovF3bgnRbyGwqbWP+zZjRwMTPFROmSNSA=,GKV9qWgOra5M/4EZW3pdmLwTHSPY7Zq08ZIsUHOB0AA="}
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █▀▄ ▄ ▄█ ▀▄ ▄ █▀█ ▄ ▄█ █▄ ▀▄▄ ▀██ ▄▄▄▄▄ █
█ █ █ █▄ █ ▄███ ██ ▄▄ ▄▄█ ▄▄▄▄▄▀ █▄▀▀██▄▀▄▀█ █ █ █
█ █▄▄▄█ █ ▄█▄ █▄ ██▄█▄ █▄ ▄▄▄ ▄▀▄ █▀██ █ ███ █▄▄▄█ █
█▄▄▄▄▄▄▄█ ▀▄█▄█ █ ▀ ▀▄▀ ▀ █▄█ ▀ ▀ █ ▀ █ █▄▀▄▀ █▄▄▄▄▄▄▄█
█ ▄█▄▀█▄▄██ ▄ ▄█ ▄ ██▄▄▄ ▄ ▄▄ █ █▄█▀ ▄█ ▄██▄▄█▄▄▄█ ▀█
█▀▄ ▄▄█▄█▀▄▄ █▄▀█ ▀ ▄█▀ ▄▄ ▄█ █▄██ ██▄▀▄▀ █ █▄▀██ ██
█▄██▄█▀▄█▄ ▀█▀▄ ▄▀ ▄ ██▄▀ ▄▄ ▄██ ▄▀ ▄ █▄▄██▀█▄▀▄ █▀▀▀█
████ ▄█▀▀ ▄██ █ ▄ ▄██ █ ▄ █ ███▄▄ ▀▄ ▄▄▄ ▀█▄ ▄▄ ▄█
█▄▀ ▀▀▄█▄▀█ ▀▄ █▄▄▄ █▀ █▀ ▄▄▄▀▄▀▄▄ █ █▀▀█▀▀ ▄█ ▀█▄█
█▀ ▀ ▄▄█▄█▀ ▄▀▀ ▀ ▄▄ █▄██ ▄█▀█▄█▄█▄█▄▄█▄ █▄▀██ ▄▄▄█
█ ▄ ▀█▄▄▀ ▀ █ ▄▀█▄▀▄ ▄ ▄▄▄ ▄ ██▄▀▄▄▀▄▀█▄ █▀▄██▀▄▄▀▀██
█▄█ ▄▄██▄ ██▀█▄█▀▄▄ ▄▀▄██▀ ▀█ ▀ ▀▄ ▄▀▄▀ █▀▀██ ▀█▀▄██
█ ▀█ ▄▄▄ ▀ ▄▄██▄ ▄ ▄▄ ▄▄▄ ▄▄▄▄█ ▄ ▄▄ ███ ▄▄▄ ▄▄▀▀█
██ ▄█ █▄█ ▄ ▄▄▀▀█▀█▀ ▄ ▀█ █▄█ █▀▀▄ ██▄▀ ▀█ ▄ █▄█ ▄█ ▄█
█▄█▄▄▄ ▄ ▄▀▄ ▀▄▄█▀ ▀▀▄▀▄ ▄▄ ▄ ██▄▄▄ ▄█▀▄█ █▄ ▄ ▄█▀▀██
██ ▀█ ▄█▄▄█▀▄▀▄ ▄█▄▀█▀██▀▄ ▀ █ ▀ ▄▀ ███▀█ █ ▄ █ ▄ █
█ ██▀██▄▀██ ▀██ ▄▄ ▄▄▄ ▄█▄▀▄▀▄█ ██▄▀ ▄█▄▄ ██▄▄▀ █▀▀ ▄█
█▄▄▀▄██▄█▀ █ ▀ ▄ █▀█▀▄▀ ▀▀ ████ █ ▄▄ ▄▄▀▄█▄█▄▀ ▄ ▀█
█▀▄▀▀ ▄▄▀▄▄██▀ ▄▄▀ ▄ █▄ █▀▄ ▀▀██▄▄█▀▄ ▀█ ▄██▀▀█▄ █▄▄▀ █
██▄ ▄ ▄ █ ▀ ▀███▄▄█▄ ▄█▀█ █▄ ▄ █ ▄██▄ ██▄ ▄▀█▄▄▄█
█ ▀ ▀█▀▄▄▀▀▀█▄▀▀█▀█▄▄ █▀ ▀▀ ▄▀▀█ ▄██▀▄▄▀▄█▀▄ █▄█▄▀█▀█
█▄ ▀▄▄▄▄▄▀██▀█ ▀██▀██▀▀█▀▄▄▄ ▀▀▄█ ▀ ▄ █ ▀▄▄▄ ▀█▄ ▄ ▄█ █
████▄██▄▄ ▄▀ ▀█▀█▄█ ██ ▄▀ ▄▄▄ ▀▄██▄█▀ █▄ ██▀ ▄▄▄ █▄█▀█
█ ▄▄▄▄▄ █▄▄█▀▄ ▀██▄▀█ ▀█▀ █▄█ ▀██▀█▀ ████▀▄ █▄█ ▄▀▀██
█ █ █ █▀ ▀▀▀█ █ ▄█▄█▄ ▄▄ ▀█ ▄ ▄▄▀█ ▄█▄▀▄▄▄ ▄▀▄▄ █
█ █▄▄▄█ █▀▄▀███▀ ▄▄█▀▀ █▀▀ ▀███▄▀▀█▄▄ ▀█▄▄▀▄▀█▄█ ▄▄ ██
█▄▄▄▄▄▄▄█▄█▄▄▄▄▄█▄▄▄█▄▄█▄▄██▄█▄▄▄▄▄█▄▄▄█▄████▄▄████▄▄██
[01:02:07.380] INFO (21171): connection update {"isNewLogin":true}
[01:02:07.661] INFO (21171): connection update {"connection":"close","lastDisconnect":{"error":{"data":{"tag":"stream:error","attrs":{"code":"515"}},"isBoom":true,"isServer":true,"output":{"statusCode":515,"payload":{"statusCode":515,"error":"Unknown","message":"Stream Errored (restart required)"},"headers":{}}},"date":"2023-01-07T22:02:07.655Z"}}
[01:02:07.664] INFO (21171): connection update {"connection":"connecting","receivedPendingNotifications":false}
[01:02:09.218] INFO (21171): connection update {"connection":"open"}
[01:02:09.224] INFO (21171): connection update {"receivedPendingNotifications":true}
[01:02:43.435] INFO (21171): CONNECTED -> 37000
[01:02:43.437] INFO (21171): ACTIVE SOCKETS -> 37000
/home/alex/code/node/wa-tunnel/node_modules/@adiwajshing/baileys/lib/Socket/socket.js:49
throw new boom_1.Boom('Connection Closed', { statusCode: Types_1.DisconnectReason.connectionClosed });
^
Error: Connection Closed
at sendRawMessage (/home/alex/code/node/wa-tunnel/node_modules/@adiwajshing/baileys/lib/Socket/socket.js:49:19)
at sendNode (/home/alex/code/node/wa-tunnel/node_modules/@adiwajshing/baileys/lib/Socket/socket.js:60:16)
at Object.presenceSubscribe (/home/alex/code/node/wa-tunnel/node_modules/@adiwajshing/baileys/lib/Socket/chats.js:421:43)
at sendData (/home/alex/code/node/wa-tunnel/src/wasocket.js:39:16)
at Socket.<anonymous> (/home/alex/code/node/wa-tunnel/src/client.js:61:11)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
data: null,
isBoom: true,
isServer: false,
output: {
statusCode: 428,
payload: {
statusCode: 428,
error: 'Precondition Required',
message: 'Connection Closed'
},
headers: {}
}
}
Node.js v19.3.0
I think something with authorization. If I re-run the script, there will be an error:
[alex@hard wa-tunnel]$ npm run client 8080 123
> [email protected] client
> node src/client.js 8080 905411980390
[01:04:47.052] INFO (21280): connection update {"connection":"connecting","receivedPendingNotifications":false}
[01:04:47.062] INFO (21280): TCP Server is running on port 8080.
[01:04:50.719] ERROR (21280): connection closed
[01:04:50.721] INFO (21280): connection update {"connection":"close","lastDisconnect":{"error":{"data":{"reason":"401","location":"odn"},"isBoom":true,"isServer":false,"output":{"statusCode":401,"payload":{"statusCode":401,"error":"Unauthorized","message":"Connection Failure"},"headers":{}}},"date":"2023-01-07T22:04:50.718Z"}}
[01:05:08.717] INFO (21280): CONNECTED -> 45730
[01:05:08.718] INFO (21280): ACTIVE SOCKETS -> 45730
/home/alex/code/node/wa-tunnel/node_modules/@adiwajshing/baileys/lib/Socket/socket.js:49
throw new boom_1.Boom('Connection Closed', { statusCode: Types_1.DisconnectReason.connectionClosed });
^
Error: Connection Closed
at sendRawMessage (/home/alex/code/node/wa-tunnel/node_modules/@adiwajshing/baileys/lib/Socket/socket.js:49:19)
at sendNode (/home/alex/code/node/wa-tunnel/node_modules/@adiwajshing/baileys/lib/Socket/socket.js:60:16)
at Object.presenceSubscribe (/home/alex/code/node/wa-tunnel/node_modules/@adiwajshing/baileys/lib/Socket/chats.js:421:43)
at sendData (/home/alex/code/node/wa-tunnel/src/wasocket.js:39:16)
at Socket.<anonymous> (/home/alex/code/node/wa-tunnel/src/client.js:61:11)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
data: null,
isBoom: true,
isServer: false,
output: {
statusCode: 428,
payload: {
statusCode: 428,
error: 'Precondition Required',
message: 'Connection Closed'
},
headers: {}
}
}
Node.js v19.3.0
I restarted the script several times, always got a 401 error, I was unable to defeat it.
i assume you forgot to change the code after rename the file
Line 1 in 8bbfeef
Hi,
would it be possible to show iPerf3 test output? I know it depends on lot of factors but just to give an idea about the throughput, latency ...
I'm not exactly an expert on how it works but if you're on a WhatsApp only data plan. You can use the http injector app in the playstore to connect to a proxy server and get internet connection. It set's up a VPN.
I have seen this working pretty great having or 2Mbs. It avoids ISP speed restrictions too but I still don't know how it works. The payloads they use in the app are very secured and encrypted. Haven't able to peak how it works. Maybe I can get some info about how it works.
When I attempt to execute npm run server localhost 8123 1XXXXXXXXXX
, I receive the following:
> [email protected] server
> node src/server.js localhost 8123 1XXXXXXXXXX
[20:09:46.801] INFO (2300): connection update {"connection":"connecting","receivedPendingNotifications":false}
[20:09:51.414] INFO (2300): connection update {"connection":"close","lastDisconnect":{"error":{"data":{"reason":"405","location":"odn"},"isBoom":true,"isServer":false,"output":{"statusCode":405,"payload":{"statusCode":405,"error":"Method Not Allowed","message":"Connection Failure"},"headers":{}}},"date":"2023-10-10T20:09:51.400Z"}}
The phone number is registered with WhatsApp, and I can send messages to it via a different WhatsApp address.
I expected to see a QR code during the first run. Did I do something wrong? Any other thoughts about how to debug the issue?
Could you please help me?
Steps to reproduce:
Server log:
[16:12:15.681] INFO (3836): connection update {"connection":"connecting","receivedPendingNotifications":false}
[16:12:17.209] INFO (3836): connection update {"connection":"open"}
[16:12:17.267] INFO (3836): connection update {"receivedPendingNotifications":true}
[16:14:37.851] INFO (3836): RECIEVING [1] -> 58943
[16:14:37.852] INFO (3836): PROCESSING [1] -> 58943
[16:14:37.854] INFO (3836): RECIEVING [1] MESSAGES -> 58943
[16:14:37.855] INFO (3836): Socket NOT In list -> 58943
[16:14:37.856] INFO (3836): CHECKING BUFFER [1] -> 58943
[16:14:37.857] ERROR (3836): ERROR Client!
[16:14:37.858] ERROR (3836): connect ECONNREFUSED ::1:3128
err: {
"type": "Error",
"message": "connect ECONNREFUSED ::1:3128",
"stack":
Error: connect ECONNREFUSED ::1:3128
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16)
"errno": -4078,
"code": "ECONNREFUSED",
"syscall": "connect",
"address": "::1",
"port": 3128
}
Client log:
[16:13:49.945] INFO (33176): connection update {"connection":"connecting","receivedPendingNotifications":false}
[16:13:49.953] INFO (33176): TCP Server is running on port 8080.
[16:13:51.520] INFO (33176): connection update {"connection":"open"}
[16:13:51.649] INFO (33176): connection update {"receivedPendingNotifications":true}
[16:14:36.762] INFO (33176): CONNECTED -> 58943
[16:14:36.763] INFO (33176): ACTIVE SOCKETS -> 58943
[16:14:36.764] INFO (33176): SENDING [0][1/1][276] -> 58943
Tried differnet methods:
Windows 11 as Client and server same time
Android as Client and server same time
Windows 11 as Client and Android as server
Android as Client and Windows 11 as server
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.