Open monotter opened 1 year ago
FYI support for discord.js was added in https://github.com/denoland/deno/pull/19412 and will be released tomorrow in v1.34.3. That said ClientReuqest.options.createConnection
is still not supported and ignored entirely.
I encoutered a similar bug.
Warning: Not implemented: ClientRequest.options.createConnection
Warning: Not implemented: ClientRequest.options.createConnection
Warning: Not implemented: ClientRequest.options.createConnection
Warning: Not implemented: ClientRequest.options.createConnection
Warning: Not implemented: ClientRequest.options.createConnection
Warning: Not implemented: ClientRequest.options.createConnection
Warning: Not implemented: ClientRequest.options.createConnection
Warning: Not implemented: ClientRequest.options.createConnection
Warning: Not implemented: ClientRequest.options.createConnection
Warning: Not implemented: ClientRequest.options.createConnection
Warning: Not implemented: ClientRequest.options.createConnection
Warning: Not implemented: ClientRequest.options.createConnection
Warning: Not implemented: ClientRequest.options.createConnection
error: Uncaught Error: Too many subscriptions on the connection
at new JSONRPCError (file:///Users/xxx/Library/Caches/deno/npm/registry.npmjs.org/@open-rpc/client-js/1.8.1/build/Error.js:24:28)
at Object.exports.convertJSONToRPCError (file:///Users/xxx/Library/Caches/deno/npm/registry.npmjs.org/@open-rpc/client-js/1.8.1/build/Error.js:37:16)
at TransportRequestManager.processResult (file:///Users/xxx/Library/Caches/deno/npm/registry.npmjs.org/@open-rpc/client-js/1.8.1/build/transports/TransportRequestManager.js:91:31)
at TransportRequestManager.resolveRes (file:///Users/xxx/Library/Caches/deno/npm/registry.npmjs.org/@open-rpc/client-js/1.8.1/build/transports/TransportRequestManager.js:113:18)
at TransportRequestManager.resolveResponse (file:///Users/xxx/Library/Caches/deno/npm/registry.npmjs.org/@open-rpc/client-js/1.8.1/build/transports/TransportRequestManager.js:53:25)
at WebSocket.<anonymous> (file:///Users/xxx/Library/Caches/deno/npm/registry.npmjs.org/@open-rpc/client-js/1.8.1/build/transports/WebSocketTransport.js:77:47)
at WebSocket.onMessage (file:///Users/xxx/Library/Caches/deno/npm/registry.npmjs.org/ws/7.5.9/lib/event-target.js:132:16)
at WebSocket.emit (ext:deno_node/_events.mjs:379:28)
at Receiver.receiverOnMessage (file:///Users/xxx/Library/Caches/deno/npm/registry.npmjs.org/ws/7.5.9/lib/websocket.js:1068:20)
at Receiver.emit (ext:deno_node/_stream.mjs:1852:9)
the source code is
import { JsonRpcProvider, Connection, SuiEvent } from 'npm:@mysten/sui.js';
// Construct your connection:
const connection = new Connection({
websocket: 'wss://fullnode.testnet.sui.io',
faucet: 'https://faucet.testnet.sui.io/gas',
});
// connect to Testnet
const provider = new JsonRpcProvider(connection);
const promptPackage = '0x86e2ab6c370fbfed0ee955158ca95ca5b465dede4a79eb3594d2959e72d3d62a';
const promptFilter = { MoveModule: { package: promptPackage, module: 'cybrosnetwork' } };
const promptSub = await provider.subscribeEvent({
filter: promptFilter,
onMessage(event: SuiEvent) {
// handle subscription notification message here
console.log(event["parsedJson"]);
},
});
Same for me using puppeteer
import { join } from "https://deno.land/std@0.197.0/path/mod.ts";
import denoDir from "https://deno.land/x/dir/mod.ts";
import puppeteer from 'npm:puppeteer-core@21.0.2';
import {install, resolveBuildId} from "npm:@puppeteer/browsers@1.5.1"
const {executablePath} = await install({
browser: 'chrome',
buildId: '113.0.5672.0',
cacheDir: join(denoDir('cache'), "puppeteer")
});
const browser = await puppeteer.launch({
headless: false,
executablePath,
});
const page = await browser.newPage();
await page.setContent(`<p>test</p>`, { waitUntil: 'networkidle2' });
Is there a workaround? I am trying to use Deno with the mqtt and I get the same issue. Thanks.
I'm also experiencing this issue with CCXT — specifically with CCXT Pro and its connection via websockets for the watch*
methods.
the same as me with npm:discord.js
I can reproduce this issue in #21096.
I'm reproducing this on npm:selenium-webdriver
which uses Chrome Debug Protocol (using websocket, ws
package). Using the following code:
import { Builder } from 'npm:selenium-webdriver';
const builder = new Builder()
.forBrowser(Browser.CHROME)
try {
const driver = await builder.build();
const cdp = await driver.createCDPConnection('page');
} catch(e) {
console.log("ERR", e)
}
+1 having this issue with Discord JS
Same in npm:@slack/bolt
I am also using mqtt.js and while everything seems to work, the same error is thrown and it would be nice if it were fixed. Not sure of the implications when this error is thrown.
+1, Also encountering this in Discord.JS and still have to start with MQTT.
I am also using mqtt.js and while everything seems to work, the same error is thrown and it would be nice if it were fixed. Not sure of the implications when this error is thrown.
For me, the websocket reconnection logic doesn't work
+1 having this issue with Discord JS
Same here, still an issue.
Same here, this blocks me from using port checking libs, wondering any workaround for that
Same in npm:baileys
Issue still exists in 1.45.2
For npm:mqtt, this is really annoying as it is the only major mqtt implementation that can be used for deno. All the other implementations are not maintained anymore. At least I was not able to find a maintained package.
Also getting this error when trying to use OpenAI's new Realtime API client in my Deno project.
Broadly, it's problematic that Deno's WebSocket
implementation is missing features from Node's implementation, mainly:
The same issue is happening in with npm:shoukaku
socket.io-client causing the same issue
Another affected package: npm:chrome-remote-interface
(DevTools debugger protocol)
Same with npm:puppeteer
Thanks for comments. We'll prioritize fixing this problem.
Thanks for comments. We'll prioritize fixing this problem.
Awesome, thank you, just encountered this and am very excited for the merge.
I think this is also blocking npm:wrangler pages dev
which is Cloudflare's local preview environment.
TIA for prioritizing it!
node:http agents are not working because of this, we are waiting! :)
I've had an issue on DiscordJS with deno. Whenever I run this code I am getting this issue below.